Content-Length: 280390 | pFad | http://github.com/postgrespro/postgres/commit/0c068205df5299fa41bce8ac33acdc9cfa5e7c6a

2C doc: Fix TOC generation for refentries · postgrespro/postgres@0c06820 · GitHub
Skip to content

Commit 0c06820

Browse files
committed
doc: Fix TOC generation for refentries
The XSLT stylesheets by default don't show refentries inside sections in table of contents, which for our documentation leads to some regressions compared to the DSSSL output. For example, in the SPI chapter, which is mostly refentries, you don't get any usable table of contents. Tweak things so it's mostly back to what it was before.
1 parent 61d0c32 commit 0c06820

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:param name="generate.section.toc.level" select="1"></xsl:param>
67+
68+
<!-- include refentry under sect1 in tocs -->
69+
<xsl:template match="sect1" mode="toc">
70+
<xsl:param name="toc-context" select="."/>
71+
<xsl:call-template name="subtoc">
72+
<xsl:with-param name="toc-context" select="$toc-context"/>
73+
<xsl:with-param name="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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/0c068205df5299fa41bce8ac33acdc9cfa5e7c6a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy