summaryrefslogtreecommitdiffstats
path: root/man/custom-html.xsl
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-07 02:00:16 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-09 03:33:48 +0200
commitfa13e4a78487971a5093db3fdc61cad224d47c16 (patch)
tree51050a0358d6a56a828ac01e27f78ca259acc977 /man/custom-html.xsl
parentupdate TODO (diff)
downloadsystemd-fa13e4a78487971a5093db3fdc61cad224d47c16.tar.xz
systemd-fa13e4a78487971a5093db3fdc61cad224d47c16.zip
man: add permalinks to subsection titles too
Diffstat (limited to '')
-rw-r--r--man/custom-html.xsl23
1 files changed, 22 insertions, 1 deletions
diff --git a/man/custom-html.xsl b/man/custom-html.xsl
index 2e40ab1660..dde9d7af0e 100644
--- a/man/custom-html.xsl
+++ b/man/custom-html.xsl
@@ -48,7 +48,6 @@
<xsl:text>Permalink to this headline</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
- <!-- <xsl:call-template name="href.target.uri" /> -->
<xsl:text>#</xsl:text>
<xsl:call-template name="inline.charseq"/>
</xsl:attribute>
@@ -57,6 +56,28 @@
</h2>
</xsl:template>
+<xsl:template match="refsect2/title|refsect2/info/title">
+ <h3>
+ <xsl:attribute name="id">
+ <xsl:call-template name="inline.charseq"/>
+ </xsl:attribute>
+ <xsl:apply-templates/>
+ <a>
+ <xsl:attribute name="class">
+ <xsl:text>headerlink</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:text>Permalink to this headline</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="href">
+ <xsl:text>#</xsl:text>
+ <xsl:call-template name="inline.charseq"/>
+ </xsl:attribute>
+ <xsl:text>¶</xsl:text>
+ </a>
+ </h3>
+</xsl:template>
+
<xsl:template match="varlistentry">
<dt>
<xsl:attribute name="id">