From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1687922-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 166EF158042 for <garchives@archives.gentoo.org>; Sat, 9 Nov 2024 06:58:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4F8D3E087B; Sat, 9 Nov 2024 06:58:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 13A80E087B for <gentoo-commits@lists.gentoo.org>; Sat, 9 Nov 2024 06:58:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2CAA5335DE9 for <gentoo-commits@lists.gentoo.org>; Sat, 9 Nov 2024 06:58:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8C5C018DD for <gentoo-commits@lists.gentoo.org>; Sat, 9 Nov 2024 06:58:30 +0000 (UTC) From: "Ulrich Müller" <ulm@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" <ulm@gentoo.org> Message-ID: <1731135088.1ee8c33b1b6d01b83ca1d545fb1f73e88707b783.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: / X-VCS-Repository: proj/devmanual X-VCS-Files: devbook.xsl X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 1ee8c33b1b6d01b83ca1d545fb1f73e88707b783 X-VCS-Branch: master Date: Sat, 9 Nov 2024 06:58:30 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ef43e027-387b-437e-9828-e2401970d310 X-Archives-Hash: 99a46c9f429916c81172ba2b6d43c87c commit: 1ee8c33b1b6d01b83ca1d545fb1f73e88707b783 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sat Nov 9 06:51:28 2024 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sat Nov 9 06:51:28 2024 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=1ee8c33b devbook.xsl: Test for include instead of contentsTree in dropdown menu This is cleaner and coincides with what is done in the contentsTree template itself. Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> devbook.xsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devbook.xsl b/devbook.xsl index 44aa0f5..6011e3f 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -623,7 +623,7 @@ </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Index <span class="caret"/></a> - <xsl:if test="/guide/chapter[1]/section or //contentsTree[not(@extraction)]"> + <xsl:if test="/guide/chapter[1]/section or /guide/include"> <ul class="dropdown-menu"> <!-- List sections of this chapter first. --> <xsl:for-each select="/guide/chapter[1]/section"> @@ -634,7 +634,7 @@ </xsl:variable> <li><a class="reference" href="#{$anchor}"><xsl:value-of select="title"/></a></li> </xsl:for-each> - <xsl:if test="//contentsTree[not(@extraction)]"> + <xsl:if test="/guide/include"> <li class="divider"><xsl:comment/></li> <!-- List any sub-documents included at first level. We cannot call "contentsTree" directly, because it would