Skip to content

Commit c771b1f

Browse files
author
Paul Vinkenoog
committed
Extended section ToCs in multi-page HTML build of documents in the refdocs set
1 parent f63eba4 commit c771b1f

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

src/docs/xsl/html/param-refdocs.xsl

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<!--
99
param-refdocs.xsl
1010
==================
11-
Here you can specify parameters for the Reference Documentation HTML builds.
11+
Here you can specify parameters for the Reference Documentation multi-page HTML builds.
1212
Params not found here will default to the values in param.xsl
1313
Params not found in param.xsl will default to the values in manual/tools/docbook-stylesheets/hmtl/param.xsl
1414
@@ -19,5 +19,36 @@
1919
<!-- Chunking -->
2020
<xsl:param name="chunk.first.sections" select="1"/>
2121

22+
<!-- Add title to section1 toc en section toc as well: -->
23+
<xsl:param name="generate.toc">
24+
appendix toc,title
25+
article/appendix nop
26+
article toc,title
27+
book toc,title,figure,table,example,equation
28+
chapter toc,title
29+
part toc,title
30+
preface toc,title
31+
qandadiv toc
32+
qandaset toc
33+
reference toc,title
34+
sect1 toc,title
35+
sect2 toc
36+
sect3 toc
37+
sect4 toc
38+
sect5 toc
39+
section toc,title
40+
set toc,title
41+
</xsl:param>
42+
43+
<!-- Depths of ToCs -->
44+
<xsl:param name="toc.max.depth">2</xsl:param> <!-- max number of levels in any ToC -->
45+
<xsl:param name="toc.section.depth">2</xsl:param> <!-- deepest section level referenced in any ToC -->
46+
<xsl:param name="generate.section.toc.level">2</xsl:param> <!-- deepest section level that will get a ToC of its own -->
47+
48+
<!--
49+
NOTE: If generate.section.toc.level >= toc.section.depth, the parameters conflict, because a ToC at section
50+
level n will have entries of section level n+1, which is 'forbidden' if n >= toc.section.depth.
51+
In such a case, generate.section.toc.level takes precedence, but the ToC will only be one level deep.
52+
-->
2253

2354
</xsl:stylesheet>

0 commit comments

Comments
 (0)