mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-08 18:33:58 +00:00
Pass through more elements in doxygen2boostbook. Refs #3309.
[SVN r55370]
This commit is contained in:
parent
2b2e5eddf9
commit
8ec58236ea
@ -1,8 +1,20 @@
|
|||||||
|
/*!
|
||||||
|
\class example
|
||||||
|
|
||||||
|
\brief Documentation for class example (why isn't this working?)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\def EXAMPLE
|
||||||
|
|
||||||
|
\brief Documentation for macro example
|
||||||
|
*/
|
||||||
|
|
||||||
int global_integer;
|
int global_integer;
|
||||||
static int global_static_integer;
|
static int global_static_integer;
|
||||||
const int global_const_integer = 1;
|
const int global_const_integer = 1;
|
||||||
static const int global_static_const_integer = 2;
|
static const int global_static_const_integer = 2;
|
||||||
enum global_enum { enumerator };
|
enum global_enum { enumerator1 = 1, enumerator2 };
|
||||||
|
|
||||||
namespace example
|
namespace example
|
||||||
{
|
{
|
||||||
@ -43,7 +55,35 @@ namespace example
|
|||||||
enum private_class_enum { enumerator3 };
|
enum private_class_enum { enumerator3 };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test some doxygen markup
|
||||||
|
*
|
||||||
|
* Embedded docbook list:
|
||||||
|
*
|
||||||
|
* \xmlonly
|
||||||
|
* <orderedlist><listitem>1</listitem><listitem>2</listitem></orderedlist>
|
||||||
|
* \endxmlonly
|
||||||
|
*
|
||||||
|
* \a Special \b Bold \c Typewriter \e Italics \em emphasis \p parameter
|
||||||
|
*
|
||||||
|
* \arg Arg1 first argument.
|
||||||
|
* \arg Arg2 second argument.
|
||||||
|
*
|
||||||
|
* \li First list item.
|
||||||
|
* \li Second list item
|
||||||
|
*
|
||||||
|
* Line 1\n
|
||||||
|
* Line 2
|
||||||
|
*
|
||||||
|
* \code
|
||||||
|
* void foo() {}
|
||||||
|
* \endcode
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
template <typename TypeParameter, int NonTypeParameter,
|
template <typename TypeParameter, int NonTypeParameter,
|
||||||
typename TypeParameterWithDefault = int>
|
typename TypeParameterWithDefault = int>
|
||||||
struct example_template {};
|
struct example_template {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define EXAMPLE(m) The macro
|
@ -308,7 +308,7 @@
|
|||||||
|
|
||||||
<xsl:if test="initializer">
|
<xsl:if test="initializer">
|
||||||
<default>
|
<default>
|
||||||
<xsl:apply-templates select="initializer" mode="passthrough"/>
|
<xsl:apply-templates select="initializer/*|initializer/text()" mode="passthrough"/>
|
||||||
</default>
|
</default>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
@ -1216,12 +1216,13 @@
|
|||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="computeroutput|orderedlist|itemizedlist|listitem"
|
<xsl:template match="*" mode="passthrough">
|
||||||
mode="passthrough">
|
<xsl:copy>
|
||||||
<xsl:element name="{name(.)}">
|
<xsl:copy-of select="@*"/>
|
||||||
<xsl:apply-templates mode="passthrough"/>
|
<xsl:apply-templates mode="passthrough"/>
|
||||||
</xsl:element>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="parameterlist" mode="passthrough"/>
|
<xsl:template match="parameterlist" mode="passthrough"/>
|
||||||
|
|
||||||
<xsl:template match="bold" mode="passthrough">
|
<xsl:template match="bold" mode="passthrough">
|
||||||
@ -1230,6 +1231,10 @@
|
|||||||
</emphasis>
|
</emphasis>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="linebreak" mode="passthrough">
|
||||||
|
<sbr/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="briefdescription" mode="passthrough">
|
<xsl:template match="briefdescription" mode="passthrough">
|
||||||
<xsl:if test="text()|*">
|
<xsl:if test="text()|*">
|
||||||
<purpose>
|
<purpose>
|
||||||
@ -1254,6 +1259,12 @@
|
|||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- Ignore ref elements for now, as there is a lot of documentation which
|
||||||
|
will have incorrect ref elements at the moment -->
|
||||||
|
<xsl:template match="ref" mode="passthrough">
|
||||||
|
<xsl:apply-templates mode="passthrough"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Handle function clauses -->
|
<!-- Handle function clauses -->
|
||||||
<xsl:template match="simplesect" mode="function-clauses">
|
<xsl:template match="simplesect" mode="function-clauses">
|
||||||
<xsl:if test="@kind='pre'">
|
<xsl:if test="@kind='pre'">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user