From 1840e1bbae56555bbc271056b47bbd602a956a83 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 24 Apr 2013 18:52:08 +0000 Subject: Add partially complete syntax highlighting to the HV1 transform. --- .../HV1/lufa_docbook_transform.xsl | 790 --------------------- .../HV1/lufa_docbook_transform.xslt | 790 +++++++++++++++++++++ LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt | 49 ++ LUFA/StudioIntegration/makefile | 6 +- 4 files changed, 842 insertions(+), 793 deletions(-) delete mode 100644 LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl create mode 100644 LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt create mode 100644 LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt diff --git a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl deleted file mode 100644 index 4247b475d..000000000 --- a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl +++ /dev/null @@ -1,790 +0,0 @@ - - - - - - - - - - LUFA Library - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <xsl:value-of select="$book.title"/> - - - - - - - - - - - - - - - - - - - Modules - - - - - - - - - - - - - - - <xsl:value-of select="$top.level.page/title"/> - - - - - - - - - - - - - - - -
- - <xsl:value-of select="title"/> - - - - - - - -
-
- - -
- - <xsl:value-of select="title"/> - - - - - - - - - - - .h - - - - .h - - - - - - - - - .h - - - - .h - - - - - - Header - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - -
- - <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"/> - - - - - - - - - - - - <xsl:value-of select="$name"/> - - - - - - - - Type - Name - Description - - - - - - - - - - - - [] - - - - - - - - - - -
-
-
-
- - - - -
- - <xsl:text>Function </xsl:text> - <xsl:value-of select="$name"/> - <xsl:text>()</xsl:text> - - - - - - - - - - - - - - - - - - - ( - - - - void - - - - - - , - - - - - - - - - - - - ) - - - -
-
- - - - -
- - <xsl:text>Enum </xsl:text> - <xsl:value-of select="$name"/> - - - - - - - - - - Members - - - - Enum Value - Description - - - - - - - - - - - - - - - - - - -
-
-
- - - - -
- - <xsl:text>Macro </xsl:text> - <xsl:value-of select="name"/> - - - - - - - - - #define - - - ( - - - , - - - - ) - - - - - - \ - - - - - - - - -
-
- - - - -
- - - - - <xsl:text>Type </xsl:text> - <xsl:value-of select="name"/> - - - - - - - - - typedef - - - - - - - - - - - - <xsl:text>Variable </xsl:text> - <xsl:value-of select="name"/> - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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"/> - - -
-
- - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - images/ - - - - - - - - - - - - -
- - - - - - - - <xsl:value-of select="title"/> - - - -
-
- - - - - - - - - -
diff --git a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt new file mode 100644 index 000000000..4247b475d --- /dev/null +++ b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt @@ -0,0 +1,790 @@ + + + + + + + + + + LUFA Library + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="$book.title"/> + + + + + + + + + + + + + + + + + + + Modules + + + + + + + + + + + + + + + <xsl:value-of select="$top.level.page/title"/> + + + + + + + + + + + + + + + +
+ + <xsl:value-of select="title"/> + + + + + + + +
+
+ + +
+ + <xsl:value-of select="title"/> + + + + + + + + + + + .h + + + + .h + + + + + + + + + .h + + + + .h + + + + + + Header + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + <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"/> + + + + + + + + + + + + <xsl:value-of select="$name"/> + + + + + + + + Type + Name + Description + + + + + + + + + + + + [] + + + + + + + + + + +
+
+
+
+ + + + +
+ + <xsl:text>Function </xsl:text> + <xsl:value-of select="$name"/> + <xsl:text>()</xsl:text> + + + + + + + + + + + + + + + + + + + ( + + + + void + + + + + + , + + + + + + + + + + + + ) + + + +
+
+ + + + +
+ + <xsl:text>Enum </xsl:text> + <xsl:value-of select="$name"/> + + + + + + + + + + Members + + + + Enum Value + Description + + + + + + + + + + + + + + + + + + +
+
+
+ + + + +
+ + <xsl:text>Macro </xsl:text> + <xsl:value-of select="name"/> + + + + + + + + + #define + + + ( + + + , + + + + ) + + + + + + \ + + + + + + + + +
+
+ + + + +
+ + + + + <xsl:text>Type </xsl:text> + <xsl:value-of select="name"/> + + + + + + + + + typedef + + + + + + + + + + + + <xsl:text>Variable </xsl:text> + <xsl:value-of select="name"/> + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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"/> + + +
+
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + images/ + + + + + + + + + + + + +
+ + + + + + + + <xsl:value-of select="title"/> + + + +
+
+ + + + + + + + + +
diff --git a/LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt b/LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt new file mode 100644 index 000000000..ff381ea5c --- /dev/null +++ b/LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt @@ -0,0 +1,49 @@ + + + + + + + + + + + + + diff --git a/LUFA/StudioIntegration/makefile b/LUFA/StudioIntegration/makefile index c86d2c560..471ab6dcb 100644 --- a/LUFA/StudioIntegration/makefile +++ b/LUFA/StudioIntegration/makefile @@ -85,10 +85,10 @@ $(EXTENSION_OUTPUT_XML): $(TEMP_MANIFEST_XML) $(MSHELP_OUTPUT_XML): $(DOXYGEN_COMBINED_XML) @echo Converting Doxygen XML to Docbook... @-mkdir mshelp 2> /dev/null - @xsltproc HV1/lufa_docbook_transform.xsl $(DOXYGEN_COMBINED_XML) > mshelp/lufa_docbook.xml + @xsltproc HV1/lufa_docbook_transform.xslt $(DOXYGEN_COMBINED_XML) > mshelp/lufa_docbook.xml - @echo Converting Docbook to Microsoft Help 1.0... - @cd mshelp && xsltproc $(MSHELP_GEN_PARAMS) ../Docbook/mshelp/docbook.xsl lufa_docbook.xml + @echo Converting Docbook XML to Microsoft Help 1.0... + @cd mshelp && xsltproc $(MSHELP_GEN_PARAMS) ../HV1/lufa_hv1_transform.xslt lufa_docbook.xml @echo Copying help assets... @cp HV1/lufa_studio_help_styling.css mshelp -- cgit v1.2.3