mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +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-kind" match="compounddef" use="@kind"/>
|
||||||
<xsl:key name="compounds-by-id" match="compounddef" use="@id"/>
|
<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"/>
|
<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:param name="with-namespace-refs"/>
|
||||||
|
|
||||||
<xsl:if test="contains(string(location/attribute::file),
|
<xsl:if test="contains(string(location/attribute::file),
|
||||||
concat('/', $in-file)) and
|
concat('/', $in-file)) ">
|
||||||
not (key('inner-classes', @id))">
|
|
||||||
<!-- The short name of this class -->
|
<!-- The short name of this class -->
|
||||||
<xsl:variable name="name-with-spec">
|
<xsl:variable name="name-with-spec">
|
||||||
<xsl:call-template name="strip-qualifiers">
|
<xsl:call-template name="strip-qualifiers">
|
||||||
|
19
xsl/type.xsl
19
xsl/type.xsl
@ -721,6 +721,11 @@ Unknown type element "<xsl:value-of select="local-name(.)"/>" in type.display.na
|
|||||||
<xsl:with-param name="indentation" select="$indentation + 2"/>
|
<xsl:with-param name="indentation" select="$indentation + 2"/>
|
||||||
</xsl:apply-templates>
|
</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 -->
|
<!-- Construct/Copy/Destruct -->
|
||||||
<xsl:call-template name="construct-copy-destruct-synopsis">
|
<xsl:call-template name="construct-copy-destruct-synopsis">
|
||||||
<xsl:with-param name="indentation" select="$indentation + 2"/>
|
<xsl:with-param name="indentation" select="$indentation + 2"/>
|
||||||
@ -803,9 +808,23 @@ Unknown type element "<xsl:value-of select="local-name(.)"/>" in type.display.na
|
|||||||
<xsl:apply-templates select="description"/>
|
<xsl:apply-templates select="description"/>
|
||||||
|
|
||||||
<xsl:call-template name="construct-copy-destruct-reference"/>
|
<xsl:call-template name="construct-copy-destruct-reference"/>
|
||||||
|
|
||||||
<xsl:apply-templates
|
<xsl:apply-templates
|
||||||
select="method-group|method|overloaded-method"
|
select="method-group|method|overloaded-method"
|
||||||
mode="reference"/>
|
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:apply-templates select="free-function-group" mode="reference">
|
||||||
<xsl:with-param name="class" select="@name"/>
|
<xsl:with-param name="class" select="@name"/>
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user