summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2014-12-18 20:15:08 -0800
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-12-19 16:27:51 +0200
commit0d0a62c79a65c5961db5f108fc4bff84691f8f1c (patch)
treec8cf2674b024e736f1f1b8f50fd33a0bab1f915e
parentf980a60038e06156d8462ed1c2881db456ad25c8 (diff)
downloadwayland-0d0a62c79a65c5961db5f108fc4bff84691f8f1c.tar.gz
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>
-rw-r--r--doc/publican/doxygen-to-publican.xsl25
1 files changed, 15 insertions, 10 deletions
diff --git a/doc/publican/doxygen-to-publican.xsl b/doc/publican/doxygen-to-publican.xsl
index 08a71e7..dfd47ee 100644
--- a/doc/publican/doxygen-to-publican.xsl
+++ b/doc/publican/doxygen-to-publican.xsl
@@ -36,13 +36,13 @@
'SC', 'sc')"/>.
</para>
- <xsl:apply-templates select="/doxygen/compounddef[@kind='class']" />
+ <xsl:apply-templates select="/doxygen/compounddef[@kind!='file' and @kind!='dir']" />
<section id="{$which}-Functions">
<title>Functions</title>
<para />
<variablelist>
- <xsl:apply-templates select="/doxygen/compounddef[@kind!='class']/sectiondef/memberdef" />
+ <xsl:apply-templates select="/doxygen/compounddef[@kind='file']/sectiondef/memberdef" />
</variablelist>
</section>
@@ -146,7 +146,6 @@
<!-- classes -->
<xsl:template match="compounddef" >
- <xsl:if test="@kind = 'class'">
<section id="{$which}-{@id}">
<title>
<xsl:value-of select="compoundname" />
@@ -154,13 +153,19 @@
- <xsl:apply-templates select="briefdescription" />
</xsl:if>
</title>
-
- <xsl:apply-templates select="detaileddescription" />
-
- <variablelist>
- <xsl:apply-templates select="sectiondef/memberdef" />
- </variablelist>
+ <xsl:choose>
+ <xsl:when test="normalize-space(detaileddescription) != ''">
+ <xsl:apply-templates select="detaileddescription" />
+ </xsl:when>
+ <xsl:otherwise>
+ <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>
- </xsl:if>
</xsl:template>
</xsl:stylesheet>