From f515e8412f1d2f3e99603d552246a9c894735a79 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 22 Apr 2013 19:22:27 +0000 Subject: Update Doxygen-to-Docbook transform with the latest transform rules for functions, enums, structs, type definitions and variables. --- .../HV1/lufa_docbook_transform.xsl | 155 ++++++++++++++------- 1 file changed, 107 insertions(+), 48 deletions(-) (limited to 'LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl') diff --git a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl index c1b6b2d84..dbbc64bd3 100644 --- a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl +++ b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl @@ -182,8 +182,14 @@
- <xsl:value-of select="@kind"/> - <xsl:text> </xsl:text> + <xsl:choose> + <xsl:when test="@kind = 'struct'"> + <xsl:text>Struct </xsl:text> + </xsl:when> + <xsl:when test="@kind = 'union'"> + <xsl:text>Union </xsl:text> + </xsl:when> + </xsl:choose> <xsl:value-of select="$name"/> @@ -194,7 +200,7 @@ - +
<xsl:value-of select="$name"/> @@ -204,8 +210,8 @@ - Data type - Field name + Type + Name Description @@ -217,6 +223,9 @@ + + [] + @@ -252,9 +261,34 @@ - - - + + + + + + ( + + + + void + + + + + + , + + + + + + + + + + + + ) @@ -276,7 +310,8 @@ - +
+ Members @@ -299,7 +334,7 @@ - +
@@ -317,27 +352,29 @@ - #define - - - ( - - - , - - - - ) - - - + + #define + + + ( + + + , + + + + ) + + - - - \ - + + + \ + - + + + @@ -348,29 +385,51 @@
- - <!-- Doxygen gets confused and thinks function pointer type definitions - are variables, so we need to map them to this common section and - check the definition to see which of the two it is. --> - <xsl:choose> - <xsl:when test="contains(definition,'typedef')"> + <!-- Doxygen gets confused and thinks function pointer type definitions + are variables, so we need to map them to this common section and + check the definition to see which of the two it is. --> + <xsl:choose> + <xsl:when test="contains(definition,'typedef')"> + <title> <xsl:text>Type </xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:text>Variable </xsl:text> - </xsl:otherwise> - </xsl:choose> + <xsl:value-of select="name"/> + - - + + + - - - + + + typedef + + + + + + + + - - - + + + <xsl:text>Variable </xsl:text> + <xsl:value-of select="name"/> + + + + + + + + + + + + + + +
-- cgit v1.2.3