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&#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

Reply via email to