summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-11-23 11:26:00 +0100
committerDaniel Mack <github@zonque.org>2015-11-23 11:26:00 +0100
commit2b65dcd63127e310c3c3d4502e03be77035979b2 (patch)
tree57f29a5de6dd99b61f951463a69fb01aa822550d
parent6098bb0dc31b1c472ab868088d04234352c44b75 (diff)
parent958caa58c089037ffb8cd71bc342bb9d798a6dd3 (diff)
Merge pull request #1990 from keszybz/html-links
man: include the target name when linking to man pages in html output
-rw-r--r--man/custom-html.xsl3
-rwxr-xr-xtools/make-directive-index.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/man/custom-html.xsl b/man/custom-html.xsl
index 84c23014e4..e89d73e7f1 100644
--- a/man/custom-html.xsl
+++ b/man/custom-html.xsl
@@ -37,7 +37,8 @@
<xsl:template match="citerefentry[not(@project)]">
<a>
<xsl:attribute name="href">
- <xsl:value-of select="refentrytitle"/><xsl:text>.html</xsl:text>
+ <xsl:value-of select="refentrytitle"/><xsl:text>.html#</xsl:text>
+ <xsl:value-of select="refentrytitle/@target"/>
</xsl:attribute>
<xsl:call-template name="inline.charseq"/>
</a>
diff --git a/tools/make-directive-index.py b/tools/make-directive-index.py
index 17b1325bba..8091683fee 100755
--- a/tools/make-directive-index.py
+++ b/tools/make-directive-index.py
@@ -268,6 +268,7 @@ def _make_section(template, name, directives, formatting):
b = tree.SubElement(para, 'citerefentry')
c = tree.SubElement(b, 'refentrytitle')
c.text = manpage
+ c.attrib['target'] = varname
d = tree.SubElement(b, 'manvolnum')
d.text = manvolume
entry.tail = '\n\n'