From cf8ec8967eab1e3fbaf096d6a44aa8c389ee1532 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 23 Apr 2013 15:08:32 +0000 Subject: [PATCH] Move all Doxygen-to-Docbook rules into a single transform, remove redundant rules/transforms and add support for verbatim and linebreak elements. --- LUFA/StudioIntegration/Blob/LUFA.dll | Bin 381952 -> 381952 bytes .../HV1/lufa_docbook_transform.xsl | 431 +++++++-- LUFA/StudioIntegration/HV1/transform_base.xsl | 823 ------------------ 3 files changed, 339 insertions(+), 915 deletions(-) delete mode 100644 LUFA/StudioIntegration/HV1/transform_base.xsl diff --git a/LUFA/StudioIntegration/Blob/LUFA.dll b/LUFA/StudioIntegration/Blob/LUFA.dll index 2a23ed65d5854b1dc6b944a37afd132941c53d7e..1146cbaddd1284a715afc41e90f9483f4f2119d0 100644 GIT binary patch delta 258 zcmV+d0sa1fs26~!7m$boG?0;sP6OuP1+m+80e?bxP`p`3w0Cy-(~yT?XBT=YrVQ01 z;b^P37{oS>Bq`x%v|8nMfM3+0$DyZT0k`i==3cg<2>;#%Gr};V9?&;k|(0SbfX2Z!ee0f*-Y0*B`Z1Bd4a1h?l01u?%6^uSgCoEr&2yxpKfAgvI_ zwIDG!%mn~aQ$$nL&4S!{E&oHLwd3kXR4K)` I49x}f25h8mvH$=8 delta 258 zcmV+d0sa1fs26~!7m$boafXqKP6PEt2C>_90e^m*@W!;HL@{|NVMpY(B2OTt{+8x; z+*QpOr1a?f`ey`g)wa|<7k=jIftu>A30NByy%`eeYWRqkhhO&XBSODUj>X1YHOmIDG!%mn~aQ$$lOA$?s%LP0{f=xALs8`3Vf I49x}f2CMpVmjD0& diff --git a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl index dbbc64bd37..c51944ba95 100644 --- a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl +++ b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl @@ -1,7 +1,6 @@ - @@ -87,23 +86,32 @@ + <xsl:value-of select="$top.level.page/title"/> + + + + + +
<xsl:value-of select="title"/> + + @@ -246,7 +254,7 @@
<xsl:text>Function </xsl:text> - <xsl:value-of select="name"/> + <xsl:value-of select="$name"/> <xsl:text>()</xsl:text> @@ -262,30 +270,30 @@ - + - + ( - - void - - - - - - , - - - - - - - - - + + void + + + + + + , + + + + + + + + + ) @@ -301,7 +309,7 @@
<xsl:text>Enum </xsl:text> - <xsl:value-of select="name"/> + <xsl:value-of select="$name"/> @@ -325,6 +333,7 @@ + @@ -422,11 +431,11 @@ - - - - - + + + + + @@ -436,7 +445,305 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Warning + + + + + + + Returns + + + + + + + Precondition + + + + + + + + <xsl:value-of select="title"/> + + + + + + + + See also + + + + + + + Note + + + + + + + + + + Parameters + + + + Data Direction + Parameter Name + Description + + + + + + + + + + +
+
+ + + + Return Values + + + + Return Value + Description + + + + + + + + + + +
+
+ + + + + + + + ? + + + + [] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ® + + + + © + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="caption"/> + + +
+
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -448,7 +755,10 @@ - images/ + + images/ + + @@ -483,67 +793,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/LUFA/StudioIntegration/HV1/transform_base.xsl b/LUFA/StudioIntegration/HV1/transform_base.xsl deleted file mode 100644 index 8ff34285fb..0000000000 --- a/LUFA/StudioIntegration/HV1/transform_base.xsl +++ /dev/null @@ -1,823 +0,0 @@ - - - - - - - - -
- Variable and Type Definitions - - -
- - <xsl:value-of select="header"/> - - - - -
-
-
-
- - -
- Structure Definitions - - - - -
-
- - -
- Macro Definitions - - -
- - <xsl:value-of select="header"/> - - - - -
-
-
-
- - -
- Function Definitions - - -
- - <xsl:value-of select="header"/> - - - - -
-
-
-
- - -
- Enumeration Definitions - - -
-
- -
- - - - - - -
- - <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="compoundname"/> - - - - - - - Members - - - - - Type - Name - Description - - - - - - - - - - - - [] - - - - - - - - - -
-   -
-
-
- - -
- Function <xsl:value-of select="name"/>() - - - - - - - - - - - - - - ( - - - - void - - - - - - , - - - - - - - - - - - - ) - - - - -   -
-
- - -
- Enum <xsl:value-of select="name"/> - - - - - Members - - - - Enum value - Description - - - - - - - - - - - - - - - - - -
- -   -
-
- - -
- Macro <xsl:value-of select="name"/> - - - - #define - - - ( - - - , - - - - ) - - - - - - \ - - - - - - - - - -   -
-
- - -
- - - - Type <xsl:value-of select="name"/> - - - - typedef - - - - - - - - - - - Variable <xsl:value-of select="name"/> - - - - - - - - - - - - - -   -
-
- - - - - - - - - - - - - - - - - - - - Warning - - - - - - - Returns - - - - - - - Precondition - - - - - - - - <xsl:value-of select="title"/> - - - - - - - - See also - - - - - - - - - - - - todo - To Do - - - - tips - Tip - - - - info - Info - - - - result - Result - - - - execute - Execute - - - - warning - Warning - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Parameters - - - - Data direction - Parameter name - Description - - - - - - - - - - -
-
- - - - Return Values - - - - Return value - Description - - - - - - - - - - -
-
- - - - - - - - ? - - - [] - - - - - - - - - - - - - - - - - - - - - - -
- - <xsl:value-of select="title"/> - - - - -
-
- - -
- - <xsl:value-of select="title"/> - - - - -
-
- - -
- - <xsl:value-of select="title"/> - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ® - - - - © - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <xsl:value-of select="caption"/> - - -
-
- - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - keep-together="auto" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - <xsl:value-of select="."/> - - - - - - - html/ - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - <xsl:value-of select="ancestor::*/title"/> - - - - - - - .svg - - - - -
-
- -