mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
doc: Each class in doxygen output is a section
All the methods belonging to the class are listed with it, making it much easier to find them. I dumped all other functions into a section called "Functions" at the end. Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
4abe5edf46
commit
f980a60038
1 changed files with 21 additions and 15 deletions
|
|
@ -36,17 +36,16 @@
|
||||||
'SC', 'sc')"/>.
|
'SC', 'sc')"/>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<xsl:if test="/doxygen/compounddef[@kind='class']">
|
<xsl:apply-templates select="/doxygen/compounddef[@kind='class']" />
|
||||||
|
|
||||||
|
<section id="{$which}-Functions">
|
||||||
|
<title>Functions</title>
|
||||||
|
<para />
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<xsl:apply-templates select="/doxygen/compounddef" />
|
<xsl:apply-templates select="/doxygen/compounddef[@kind!='class']/sectiondef/memberdef" />
|
||||||
</variablelist>
|
</variablelist>
|
||||||
</xsl:if>
|
</section>
|
||||||
|
|
||||||
<para>Methods for the respective classes.</para>
|
|
||||||
|
|
||||||
<variablelist>
|
|
||||||
<xsl:apply-templates select="/doxygen/compounddef/sectiondef/memberdef" />
|
|
||||||
</variablelist>
|
|
||||||
</appendix>
|
</appendix>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
@ -104,6 +103,11 @@
|
||||||
<programlisting><xsl:apply-templates /></programlisting>
|
<programlisting><xsl:apply-templates /></programlisting>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- stops cross-references in the section titles -->
|
||||||
|
<xsl:template match="briefdescription">
|
||||||
|
<xsl:value-of select="." />
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<!-- this opens a para for each detaileddescription/para. I could not find a
|
<!-- this opens a para for each detaileddescription/para. I could not find a
|
||||||
way to extract the right text for the description from the
|
way to extract the right text for the description from the
|
||||||
source otherwise. Downside: we can't use para for return value, "see
|
source otherwise. Downside: we can't use para for return value, "see
|
||||||
|
|
@ -143,18 +147,20 @@
|
||||||
<!-- classes -->
|
<!-- classes -->
|
||||||
<xsl:template match="compounddef" >
|
<xsl:template match="compounddef" >
|
||||||
<xsl:if test="@kind = 'class'">
|
<xsl:if test="@kind = 'class'">
|
||||||
<varlistentry id="{$which}-{@id}">
|
<section id="{$which}-{@id}">
|
||||||
<term>
|
<title>
|
||||||
<xsl:value-of select="compoundname" />
|
<xsl:value-of select="compoundname" />
|
||||||
<xsl:if test="normalize-space(briefdescription) != ''">
|
<xsl:if test="normalize-space(briefdescription) != ''">
|
||||||
- <xsl:apply-templates select="briefdescription" />
|
- <xsl:apply-templates select="briefdescription" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</term>
|
</title>
|
||||||
|
|
||||||
<listitem>
|
<xsl:apply-templates select="detaileddescription" />
|
||||||
<xsl:apply-templates select="detaileddescription" />
|
|
||||||
</listitem>
|
<variablelist>
|
||||||
</varlistentry>
|
<xsl:apply-templates select="sectiondef/memberdef" />
|
||||||
|
</variablelist>
|
||||||
|
</section>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue