Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0c06820

Browse files
committed
doc: Fix TOC generation for refentries
The XSLT stylesheets by default don't show refentries inside sections intable of contents, which for our documentation leads to some regressionscompared to the DSSSL output. For example, in the SPI chapter, which ismostly refentries, you don't get any usable table of contents. Tweakthings so it's mostly back to what it was before.
1 parent61d0c32 commit0c06820

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎doc/src/sgml/stylesheet.xsl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ section toc
6363
set toc,title
6464
</xsl:param>
6565

66+
<xsl:paramname="generate.section.toc.level"select="1"></xsl:param>
67+
68+
<!-- include refentry under sect1 in tocs-->
69+
<xsl:templatematch="sect1"mode="toc">
70+
<xsl:paramname="toc-context"select="."/>
71+
<xsl:call-templatename="subtoc">
72+
<xsl:with-paramname="toc-context"select="$toc-context"/>
73+
<xsl:with-paramname="nodes"select="sect2|refentry
74+
|bridgehead[$bridgehead.in.toc != 0]"/>
75+
</xsl:call-template>
76+
</xsl:template>
77+
6678

6779
<!-- Put index "quicklinks" (A | B | C | ...) at the top of the bookindex page.-->
6880

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp