From 083b5cb1438d16e55c9b1fc6cf2f5f9a90ee236d Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 21 Apr 2013 16:05:11 +0000 Subject: [PATCH] Add missing indexterm entries to the Atmel Studio help transform. --- .../HV1/lufa_docbook_transform.xsl | 193 ++++++++++++++++-- LUFA/StudioIntegration/makefile | 1 + 2 files changed, 172 insertions(+), 22 deletions(-) diff --git a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl index 53dd82f9a8..9374b9b0ef 100644 --- a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl +++ b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xsl @@ -3,7 +3,7 @@ - + @@ -23,6 +23,27 @@ + + + + + + + + + + + + + + + + + + + + + @@ -66,13 +87,11 @@ - <xsl:value-of select="$top.level.page/title"/> - @@ -85,7 +104,6 @@ - @@ -147,7 +165,6 @@ - @@ -161,14 +178,6 @@ - - - - - - - -
@@ -177,16 +186,12 @@ <xsl:value-of select="$name"/> - - - - - - - - + + + + @@ -225,6 +230,151 @@ </section> </xsl:template> + <xsl:template match="memberdef[@kind = 'function']"> + <xsl:variable name="name" select="name"/> + + <section id="{@id}" xreflabel="{name}"> + <title> + <xsl:text>Function </xsl:text> + <xsl:value-of select="name"/> + <xsl:text>()</xsl:text> + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + <xsl:text>Enum </xsl:text> + <xsl:value-of select="name"/> + + + + + + + + + + +
+ + Enum Value + Description + + + + + + + + + + + + + + + + + + + + + + + + +
+ + <xsl:text>Macro </xsl:text> + <xsl:value-of select="name"/> + + + + + + + + #define + + + ( + + + , + + + + ) + + + + + + + \ + + + + + + +
+
+ + + + +
+ + <!-- 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')"> + <xsl:text>Type </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>Variable </xsl:text> + </xsl:otherwise> + </xsl:choose> + + <xsl:value-of select="name"/> + + + + + + + + + + + +
+
+ @@ -260,7 +410,6 @@ <xsl:value-of select="title"/> - diff --git a/LUFA/StudioIntegration/makefile b/LUFA/StudioIntegration/makefile index 975dd04fc0..32279970fb 100644 --- a/LUFA/StudioIntegration/makefile +++ b/LUFA/StudioIntegration/makefile @@ -40,6 +40,7 @@ VSIX_ASSETS := $(LUFA_ROOT)/DoxygenPages/Images/LUFA_thumb.png \ Blob/Atmel.Studio.Services.Interfaces.dll \ Blob/LUFA.dll \ Blob/LUFA.pkgdef + MSHELP_GEN_PARAMS := --stringparam generate.toc "book toc" \ --stringparam chunk.quietly "1" \ --stringparam chunk.section.depth "3" \