summaryrefslogtreecommitdiff
path: root/man/custom-html.xsl
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@gmail.com>2020-06-19 01:55:09 +0200
committerнаб <nabijaczleweli@nabijaczleweli.xyz>2020-06-22 23:12:13 +0200
commitaffa893da0715cbb7a865f6363b6092097d5e161 (patch)
treebe0cc996b3ebd78439e71fb00b18d58e9e247bfe /man/custom-html.xsl
parentc2ad8c0978159cacffb3f10743989661ae440566 (diff)
downloadsystemd-affa893da0715cbb7a865f6363b6092097d5e161.tar.gz
man/sd-makefs: link to btrfs.wiki.kernel.org for btrfs-man5, since the man-pages link is dead
This also adds a <citerefentry project="url"> type, since the other btrfs manpages use man-pages/die-net and are alive, and btrfs.w.k.o won't be used anywhere else
Diffstat (limited to 'man/custom-html.xsl')
-rw-r--r--man/custom-html.xsl12
1 files changed, 11 insertions, 1 deletions
diff --git a/man/custom-html.xsl b/man/custom-html.xsl
index 7eebfdb5a1..57a9cc97d2 100644
--- a/man/custom-html.xsl
+++ b/man/custom-html.xsl
@@ -19,7 +19,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"/>
@@ -133,6 +134,15 @@
</a>
</xsl:template>
+<xsl:template match="citerefentry[@project='url']">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="refentrytitle/@url"/>
+ </xsl:attribute>
+ <xsl:call-template name="inline.charseq"/>
+ </a>
+</xsl:template>
+
<!--
- helper template to do conflict resolution between various headings with the same inferred ID attribute/tag from the headerlink template
- this conflict resolution is necessary to prevent malformed HTML output (multiple ID attributes with the same value)