Merge pull request #1990 from keszybz/html-links
man: include the target name when linking to man pages in html output
This commit is contained in:
+2
-1
@@ -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>
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user