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
This commit is contained in:
наб 2020-06-19 01:55:09 +02:00 committed by наб
parent c2ad8c0978
commit affa893da0
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1
2 changed files with 12 additions and 3 deletions

View File

@ -19,7 +19,8 @@
<xsl:template match="citerefentry[not(@project)]"> <xsl:template match="citerefentry[not(@project)]">
<a> <a>
<xsl:attribute name="href"> <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:value-of select="refentrytitle/@target"/>
</xsl:attribute> </xsl:attribute>
<xsl:call-template name="inline.charseq"/> <xsl:call-template name="inline.charseq"/>
@ -133,6 +134,15 @@
</a> </a>
</xsl:template> </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 - 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) - this conflict resolution is necessary to prevent malformed HTML output (multiple ID attributes with the same value)

View File

@ -62,8 +62,7 @@
number specific to each file system, so only certain types are supported. number specific to each file system, so only certain types are supported.
Currently: Currently:
<citerefentry project='man-pages'><refentrytitle>ext4</refentrytitle><manvolnum>5</manvolnum></citerefentry>, <citerefentry project='man-pages'><refentrytitle>ext4</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
btrfs (see <citerefentry project='url'><refentrytitle url='https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs(5)'>btrfs</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
<citerefentry project='man-pages'><refentrytitle>btrfs-man5</refentrytitle><manvolnum>5</manvolnum></citerefentry>),
<citerefentry project='man-pages'><refentrytitle>xfs</refentrytitle><manvolnum>5</manvolnum></citerefentry>, <citerefentry project='man-pages'><refentrytitle>xfs</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
<!-- yes, that's what the man page is called. --> <!-- yes, that's what the man page is called. -->
and dm-crypt partitions (see and dm-crypt partitions (see