[PATCH 2/2] doc: Add macros and typedefs to the documentation

Bill Spitzak spitzak at gmail.com
Thu Jan 8 19:21:29 PST 2015


If somebody bothered to put a doxygen comment in for a macro or
typedef, make it appear in the pages. This produces documentation
for wl_container_of and wl_dispatcher_func_t from the _8h files.
---
 doc/publican/doxygen-to-publican.xsl |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/publican/doxygen-to-publican.xsl b/doc/publican/doxygen-to-publican.xsl
index ee57374..7c3b507 100644
--- a/doc/publican/doxygen-to-publican.xsl
+++ b/doc/publican/doxygen-to-publican.xsl
@@ -101,7 +101,8 @@
 
 <!-- methods -->
 <xsl:template match="memberdef" >
-  <xsl:if test="@kind = 'function' and @static = 'no'">
+  <xsl:if test="@kind = 'function' and @static = 'no' or
+                @kind !='function' and normalize-space(briefdescription) != ''">
     <varlistentry id="{$which}-{@id}">
         <term>
           <xsl:value-of select="name"/>
-- 
1.7.9.5



More information about the wayland-devel mailing list