doc: Document structures and unions in addition to classes

This provides targets for some of the doxygen links, and some of
them have useful memberof function lists.

Added some if/else statements to reduce validation errors.

Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Bill Spitzak 2014-12-18 20:15:08 -08:00 committed by Pekka Paalanen
parent f980a60038
commit 0d0a62c79a

View file

@ -36,13 +36,13 @@
'SC', 'sc')"/>. 'SC', 'sc')"/>.
</para> </para>
<xsl:apply-templates select="/doxygen/compounddef[@kind='class']" /> <xsl:apply-templates select="/doxygen/compounddef[@kind!='file' and @kind!='dir']" />
<section id="{$which}-Functions"> <section id="{$which}-Functions">
<title>Functions</title> <title>Functions</title>
<para /> <para />
<variablelist> <variablelist>
<xsl:apply-templates select="/doxygen/compounddef[@kind!='class']/sectiondef/memberdef" /> <xsl:apply-templates select="/doxygen/compounddef[@kind='file']/sectiondef/memberdef" />
</variablelist> </variablelist>
</section> </section>
@ -146,7 +146,6 @@
<!-- classes --> <!-- classes -->
<xsl:template match="compounddef" > <xsl:template match="compounddef" >
<xsl:if test="@kind = 'class'">
<section id="{$which}-{@id}"> <section id="{$which}-{@id}">
<title> <title>
<xsl:value-of select="compoundname" /> <xsl:value-of select="compoundname" />
@ -154,13 +153,19 @@
- <xsl:apply-templates select="briefdescription" /> - <xsl:apply-templates select="briefdescription" />
</xsl:if> </xsl:if>
</title> </title>
<xsl:choose>
<xsl:apply-templates select="detaileddescription" /> <xsl:when test="normalize-space(detaileddescription) != ''">
<xsl:apply-templates select="detaileddescription" />
<variablelist> </xsl:when>
<xsl:apply-templates select="sectiondef/memberdef" /> <xsl:otherwise>
</variablelist> <para />
</xsl:otherwise>
</xsl:choose>
<xsl:if test="sectiondef/memberdef[@kind='function' and @static='no']">
<variablelist>
<xsl:apply-templates select="sectiondef/memberdef" />
</variablelist>
</xsl:if>
</section> </section>
</xsl:if>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>