diff options
Diffstat (limited to 'man/custom-html.xsl')
-rw-r--r-- | man/custom-html.xsl | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/man/custom-html.xsl b/man/custom-html.xsl index 060af2e56a..8bcc5f92d9 100644 --- a/man/custom-html.xsl +++ b/man/custom-html.xsl @@ -24,7 +24,7 @@ <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"> +<xsl:template match="citerefentry[not(@project)]"> <a> <xsl:attribute name="href"> <xsl:value-of select="refentrytitle"/><xsl:text>.html</xsl:text> @@ -33,6 +33,52 @@ </a> </xsl:template> +<xsl:template match="citerefentry[@project='man-pages'] | citerefentry[manvolnum='2'] | citerefentry[manvolnum='4']"> + <a> + <xsl:attribute name="href"> + <xsl:text>http://man7.org/linux/man-pages/man</xsl:text> + <xsl:value-of select="manvolnum"/> + <xsl:text>/</xsl:text> + <xsl:value-of select="refentrytitle"/> + <xsl:text>.</xsl:text> + <xsl:value-of select="manvolnum"/> + <xsl:text>.html</xsl:text> + </xsl:attribute> + <xsl:call-template name="inline.charseq"/> + </a> +</xsl:template> + +<xsl:template match="citerefentry[@project='die-net']"> + <a> + <xsl:attribute name="href"> + <xsl:text>http://linux.die.net/man/</xsl:text> + <xsl:value-of select="manvolnum"/> + <xsl:text>/</xsl:text> + <xsl:value-of select="refentrytitle"/> + </xsl:attribute> + <xsl:call-template name="inline.charseq"/> + </a> +</xsl:template> + +<xsl:template match="citerefentry[@project='archlinux']"> + <a> + <xsl:attribute name="href"> + <xsl:text>https://www.archlinux.org/</xsl:text> + <xsl:value-of select="refentrytitle"/> + <xsl:text>/</xsl:text> + <xsl:value-of select="refentrytitle"/> + <xsl:text>.</xsl:text> + <xsl:value-of select="manvolnum"/> + <xsl:text>.html</xsl:text> + </xsl:attribute> + <xsl:call-template name="inline.charseq"/> + </a> +</xsl:template> + +<xsl:template match="citerefentry[@project='gummiboot']"> + <xsl:call-template name="inline.charseq"/> +</xsl:template> + <xsl:template match="refsect1/title|refsect1/info/title"> <!-- the ID is output in the block.object call for refsect1 --> <h2> |