summaryrefslogtreecommitdiffstats
path: root/winsup/doc/cygwin.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/doc/cygwin.xsl')
-rw-r--r--winsup/doc/cygwin.xsl13
1 files changed, 13 insertions, 0 deletions
diff --git a/winsup/doc/cygwin.xsl b/winsup/doc/cygwin.xsl
index 99ec5d09c..df1255509 100644
--- a/winsup/doc/cygwin.xsl
+++ b/winsup/doc/cygwin.xsl
@@ -10,4 +10,17 @@
<xsl:param name="root.filename" select="@id" />
<xsl:param name="toc.section.depth" select="4" />
+<!-- autotoc.xsl customization to make refentry in sect1 appear in toc -->
+<xsl:template match="sect1" mode="toc">
+ <xsl:param name="toc-context" select="."/>
+ <xsl:call-template name="subtoc">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ <xsl:with-param name="nodes" select="sect2|refentry
+ |bridgehead[$bridgehead.in.toc != 0]"/>
+ </xsl:call-template>
+</xsl:template>
+
+<!-- suppress refentry in toc being annotated with refpurpose -->
+<xsl:param name="annotate.toc" select="0" />
+
</xsl:stylesheet>