mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 02:43:58 +00:00
document nested classes and nested enums
[SVN r37183]
This commit is contained in:
parent
18eced6070
commit
f9d3ce76c5
@ -46,7 +46,6 @@
|
||||
|
||||
<xsl:key name="compounds-by-kind" match="compounddef" use="@kind"/>
|
||||
<xsl:key name="compounds-by-id" match="compounddef" use="@id"/>
|
||||
<xsl:key name="inner-classes" match="compounddef[not(attribute::kind='namespace') and not(attribute::kind='file')]/innerclass" use="@refid"/>
|
||||
|
||||
<xsl:strip-space elements="briefdescription detaileddescription"/>
|
||||
|
||||
@ -184,8 +183,8 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
|
||||
<xsl:param name="with-namespace-refs"/>
|
||||
|
||||
<xsl:if test="contains(string(location/attribute::file),
|
||||
concat('/', $in-file)) and
|
||||
not (key('inner-classes', @id))">
|
||||
concat('/', $in-file)) ">
|
||||
|
||||
<!-- The short name of this class -->
|
||||
<xsl:variable name="name-with-spec">
|
||||
<xsl:call-template name="strip-qualifiers">
|
||||
|
27
xsl/type.xsl
27
xsl/type.xsl
@ -720,24 +720,29 @@ Unknown type element "<xsl:value-of select="local-name(.)"/>" in type.display.na
|
||||
mode="reference">
|
||||
<xsl:with-param name="indentation" select="$indentation + 2"/>
|
||||
</xsl:apply-templates>
|
||||
|
||||
|
||||
<!-- Enums -->
|
||||
<xsl:apply-templates select="enum" mode="synopsis">
|
||||
<xsl:with-param name="indentation" select="$indentation + 2"/>
|
||||
</xsl:apply-templates>
|
||||
|
||||
<!-- Construct/Copy/Destruct -->
|
||||
<xsl:call-template name="construct-copy-destruct-synopsis">
|
||||
<xsl:with-param name="indentation" select="$indentation + 2"/>
|
||||
</xsl:call-template>
|
||||
|
||||
|
||||
<!-- Member functions -->
|
||||
<xsl:apply-templates
|
||||
select="method-group|method|overloaded-method"
|
||||
mode="synopsis">
|
||||
<xsl:with-param name="indentation" select="$indentation + 2"/>
|
||||
</xsl:apply-templates>
|
||||
|
||||
|
||||
<!-- Data members -->
|
||||
<xsl:apply-templates select="data-member" mode="synopsis">
|
||||
<xsl:with-param name="indentation" select="$indentation + 2"/>
|
||||
</xsl:apply-templates>
|
||||
|
||||
|
||||
<!-- Closing brace -->
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="indent">
|
||||
@ -803,9 +808,23 @@ Unknown type element "<xsl:value-of select="local-name(.)"/>" in type.display.na
|
||||
<xsl:apply-templates select="description"/>
|
||||
|
||||
<xsl:call-template name="construct-copy-destruct-reference"/>
|
||||
|
||||
<xsl:apply-templates
|
||||
select="method-group|method|overloaded-method"
|
||||
mode="reference"/>
|
||||
|
||||
<!-- Emit reference docs for nested classes -->
|
||||
<xsl:apply-templates
|
||||
select="class|class-specialization|
|
||||
struct|struct-specialization|
|
||||
union|union-specialization"
|
||||
mode="namespace-reference"/>
|
||||
|
||||
<!-- Emit reference docs for nested enums -->
|
||||
<xsl:apply-templates
|
||||
select="enum"
|
||||
mode="namespace-reference"/>
|
||||
|
||||
<xsl:apply-templates select="free-function-group" mode="reference">
|
||||
<xsl:with-param name="class" select="@name"/>
|
||||
</xsl:apply-templates>
|
||||
|
Loading…
x
Reference in New Issue
Block a user