commit: dd4420fbd76d3a13012d3a8b8e4357a9bc5424eb
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 6 19:13:38 2024 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Nov 6 19:13:38 2024 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=dd4420fb
devbook.xsl: Fix dropdown menu in appendices/todo-list
The contentsTree element must be skipped when it comes with an
extraction attribute.
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 9bbac18..44aa0f5 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">
+ <xsl:if test="/guide/chapter[1]/section or
//contentsTree[not(@extraction)]">
<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">
+ <xsl:if test="//contentsTree[not(@extraction)]">
<li class="divider"><xsl:comment/></li>
<!-- List any sub-documents included at first
level.
We cannot call "contentsTree" directly,
because it would