aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-11-09 07:51:28 +0100
committerUlrich Müller <ulm@gentoo.org>2024-11-09 07:51:28 +0100
commit1ee8c33b1b6d01b83ca1d545fb1f73e88707b783 (patch)
treef20fb5723530cf880d94573019b0c3a655d63956
parentdevbook.xsl: Fix dropdown menu in appendices/todo-list (diff)
downloaddevmanual-1ee8c33b1b6d01b83ca1d545fb1f73e88707b783.tar.gz
devmanual-1ee8c33b1b6d01b83ca1d545fb1f73e88707b783.tar.bz2
devmanual-1ee8c33b1b6d01b83ca1d545fb1f73e88707b783.zip
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@gentoo.org>
-rw-r--r--devbook.xsl4
1 files 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&#xa0;<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