mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
doc: preserve links produced by Doxygen
These links are pretty useful for navigation, though sometimes excessive (you can turn them off by putting % before the word in the comment). I had to turn off validation because it failed on missing and duplicate target id's, which this produces.
This commit is contained in:
parent
c532b571e3
commit
ba8ea938d2
2 changed files with 9 additions and 15 deletions
|
|
@ -47,6 +47,7 @@ if HAVE_XMLTO
|
||||||
if HAVE_XSLTPROC
|
if HAVE_XSLTPROC
|
||||||
noinst_DATA = Wayland $(publican_targets)
|
noinst_DATA = Wayland $(publican_targets)
|
||||||
XMLTO_PARAM = \
|
XMLTO_PARAM = \
|
||||||
|
--skip-validation \
|
||||||
--stringparam chunk.section.depth=0 \
|
--stringparam chunk.section.depth=0 \
|
||||||
--stringparam toc.section.depth=1 \
|
--stringparam toc.section.depth=1 \
|
||||||
--stringparam html.stylesheet=css/default.css
|
--stringparam html.stylesheet=css/default.css
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="ref">
|
<xsl:template match="ref">
|
||||||
<emphasis><xsl:apply-templates /></emphasis>
|
<link linkend="{@refid}"><xsl:value-of select="." /></link>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="simplesect[@kind='return']">
|
<xsl:template match="simplesect[@kind='return']">
|
||||||
|
|
@ -81,10 +81,7 @@
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
See also:
|
See also: <xsl:apply-templates />
|
||||||
<xsl:for-each select="para/ref">
|
|
||||||
<emphasis><xsl:apply-templates /><xsl:text> </xsl:text></emphasis>
|
|
||||||
</xsl:for-each>
|
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
|
@ -94,7 +91,7 @@
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Since: <xsl:apply-templates select="para"/>
|
Since: <xsl:apply-templates />
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
|
@ -104,10 +101,6 @@
|
||||||
<emphasis>Note: <xsl:apply-templates /></emphasis>
|
<emphasis>Note: <xsl:apply-templates /></emphasis>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="programlisting//sp">
|
|
||||||
<xsl:text> </xsl:text>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<xsl:template match="sp">
|
<xsl:template match="sp">
|
||||||
<xsl:text> </xsl:text>
|
<xsl:text> </xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
@ -135,9 +128,9 @@
|
||||||
<!-- methods -->
|
<!-- methods -->
|
||||||
<xsl:template match="memberdef" >
|
<xsl:template match="memberdef" >
|
||||||
<xsl:if test="@kind = 'function' and @static = 'no'">
|
<xsl:if test="@kind = 'function' and @static = 'no'">
|
||||||
<varlistentry>
|
<varlistentry id="{@id}">
|
||||||
<term>
|
<term>
|
||||||
<xsl:apply-templates select="name"/>
|
<xsl:value-of select="name"/>
|
||||||
- <xsl:apply-templates select="briefdescription" />
|
- <xsl:apply-templates select="briefdescription" />
|
||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
|
@ -154,8 +147,8 @@
|
||||||
|
|
||||||
<!-- classes -->
|
<!-- classes -->
|
||||||
<xsl:template match="compounddef" >
|
<xsl:template match="compounddef" >
|
||||||
<xsl:if test="@kind = 'class' ">
|
<xsl:if test="@kind = 'class'">
|
||||||
<varlistentry>
|
<varlistentry id="{@id}">
|
||||||
<term>
|
<term>
|
||||||
<xsl:apply-templates select="compoundname" />
|
<xsl:apply-templates select="compoundname" />
|
||||||
<xsl:if test="briefdescription">
|
<xsl:if test="briefdescription">
|
||||||
|
|
@ -164,7 +157,7 @@
|
||||||
</term>
|
</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<xsl:apply-templates select="detaileddescription/para" />
|
<xsl:apply-templates select="detaileddescription" />
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue