mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
man: html - cross-ref man page references and add Index link
This commit is contained in:
parent
e4d9640961
commit
ecca17f6ee
|
@ -3420,7 +3420,7 @@ man/%.7: man/%.xml
|
||||||
man/%.8: man/%.xml
|
man/%.8: man/%.xml
|
||||||
$(XSLTPROC_PROCESS_MAN)
|
$(XSLTPROC_PROCESS_MAN)
|
||||||
|
|
||||||
man/%.html: man/%.xml
|
man/%.html: man/%.xml man/custom-html.xsl
|
||||||
$(XSLTPROC_PROCESS_HTML)
|
$(XSLTPROC_PROCESS_HTML)
|
||||||
|
|
||||||
CLEANFILES += \
|
CLEANFILES += \
|
||||||
|
|
|
@ -23,6 +23,27 @@
|
||||||
|
|
||||||
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
|
||||||
|
|
||||||
|
<!-- translate man page references to links to html pages -->
|
||||||
|
<xsl:template match="citerefentry">
|
||||||
|
<a>
|
||||||
|
<xsl:attribute name="href">
|
||||||
|
<xsl:value-of select="refentrytitle"/><xsl:text>.html</xsl:text>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:call-template name="inline.charseq"/>
|
||||||
|
</a>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- add Index link at top of page -->
|
||||||
|
<xsl:template name="user.header.content">
|
||||||
|
<a>
|
||||||
|
<xsl:attribute name="href">
|
||||||
|
<xsl:text>index.html</xsl:text>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:text>Index </xsl:text>
|
||||||
|
</a>
|
||||||
|
<hr/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Switch things to UTF-8, ISO-8859-1 is soo yesteryear -->
|
<!-- Switch things to UTF-8, ISO-8859-1 is soo yesteryear -->
|
||||||
<xsl:output method="html" encoding="UTF-8" indent="no"/>
|
<xsl:output method="html" encoding="UTF-8" indent="no"/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue