aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2013-10-17 22:00:27 -0400
committerPeter Eisentraut <peter_e@gmx.net>2013-10-17 22:00:27 -0400
commited632ab21e9c638328498a85ccf77452645943bb (patch)
treec2c2d9f86041575002c82ae16a073aab67057b4e
parent81051a86bcecdc681592725139fe610b2c1d1428 (diff)
downloadpostgresql-ed632ab21e9c638328498a85ccf77452645943bb.tar.gz
postgresql-ed632ab21e9c638328498a85ccf77452645943bb.zip
doc: Configure TOC generation in XSLT HTML build
The default table of contents in the XSLT HTML build is much too big and deep. Configure it to look more like the one that is currently being produced by the DSSSL build.
-rw-r--r--doc/src/sgml/stylesheet.xsl24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/src/sgml/stylesheet.xsl b/doc/src/sgml/stylesheet.xsl
index 09d8981e568..da82b63c620 100644
--- a/doc/src/sgml/stylesheet.xsl
+++ b/doc/src/sgml/stylesheet.xsl
@@ -18,6 +18,7 @@
<xsl:param name="link.mailto.url">pgsql-docs@postgresql.org</xsl:param>
<xsl:param name="chunker.output.indent" select="'yes'"/>
<xsl:param name="chunk.quietly" select="1"></xsl:param>
+<xsl:param name="toc.max.depth">2</xsl:param>
<!-- Change display of some elements -->
@@ -38,4 +39,27 @@
</span><br/>
</xsl:template>
+
+<!-- table of contents configuration -->
+
+<xsl:param name="generate.toc">
+appendix toc,title
+article/appendix nop
+article toc,title
+book toc,title
+chapter toc,title
+part toc,title
+preface toc,title
+qandadiv toc
+qandaset toc
+reference toc,title
+sect1 toc
+sect2 toc
+sect3 toc
+sect4 toc
+sect5 toc
+section toc
+set toc,title
+</xsl:param>
+
</xsl:stylesheet>