3fc5c4c180
We already use asciidoc for the gnome-extensions man page, while the main man page is generated from docbook XML. The former is a much friendlier source format, so use it for both man pages. Hopefully the plain text format encourages updates, to prevent the page from getting as badly out of sync again as it is currently. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1553>
28 lines
877 B
XML
28 lines
877 B
XML
<?xml version='1.0'?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
version='1.0'>
|
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/>
|
|
|
|
<xsl:template match="variablelist/title">
|
|
<xsl:text>.PP </xsl:text>
|
|
<xsl:call-template name="bold">
|
|
<xsl:with-param name="node" select="."/>
|
|
<xsl:with-param name="context" select=".."/>
|
|
</xsl:call-template>
|
|
<xsl:text> </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="varlistentry[preceding-sibling::title]">
|
|
<xsl:if test="not(preceding-sibling::varlistentry)">
|
|
<xsl:text>.RS 4 </xsl:text>
|
|
<!-- comment out the leading .PP added by the original template -->
|
|
<xsl:text>.\"</xsl:text>
|
|
</xsl:if>
|
|
<xsl:apply-imports/>
|
|
<xsl:if test="position() = last()">
|
|
<xsl:text>.RE </xsl:text>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|