mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Use the header prefix to help find the proper header name, without the
silly "prepend" behavior. Works much better now. [SVN r20248]
This commit is contained in:
parent
99883e3f24
commit
33a3dd5f63
@ -9,8 +9,8 @@
|
|||||||
be output. -->
|
be output. -->
|
||||||
<xsl:param name="boost.doxygen.headers" select="''"/>
|
<xsl:param name="boost.doxygen.headers" select="''"/>
|
||||||
|
|
||||||
<!-- Prefix all of the headers output with this string -->
|
<!-- The common prefix to all headers -->
|
||||||
<xsl:param name="boost.doxygen.header.prefix" select="''"/>
|
<xsl:param name="boost.doxygen.header.prefix" select="'boost'"/>
|
||||||
|
|
||||||
<!-- The text that Doxygen places in overloaded functions. Damn them
|
<!-- The text that Doxygen places in overloaded functions. Damn them
|
||||||
for forcing us to compare TEXT just to figure out what's overloaded
|
for forcing us to compare TEXT just to figure out what's overloaded
|
||||||
@ -276,14 +276,9 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
|
|||||||
<xsl:if test="$include-header='yes'">
|
<xsl:if test="$include-header='yes'">
|
||||||
<header>
|
<header>
|
||||||
<xsl:attribute name="name">
|
<xsl:attribute name="name">
|
||||||
<xsl:value-of select="$boost.doxygen.header.prefix"/>
|
<xsl:call-template name="shorten.header.name">
|
||||||
<xsl:if
|
<xsl:with-param name="header" select="location/attribute::file"/>
|
||||||
test="not(substring($boost.doxygen.header.prefix,
|
</xsl:call-template>
|
||||||
string-length($boost.doxygen.header.prefix))
|
|
||||||
= '/')">
|
|
||||||
<xsl:text>/</xsl:text>
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:value-of select="string(compoundname)"/>
|
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
|
|
||||||
<xsl:if test="briefdescription/*|detaileddescription/*">
|
<xsl:if test="briefdescription/*|detaileddescription/*">
|
||||||
@ -300,6 +295,35 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
|
|||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template name="shorten.header.name">
|
||||||
|
<xsl:param name="header"/>
|
||||||
|
|
||||||
|
<xsl:variable name="prefix">
|
||||||
|
<xsl:value-of select="concat($boost.doxygen.header.prefix, '/')"/>
|
||||||
|
</xsl:variable>
|
||||||
|
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="contains($header, $prefix)">
|
||||||
|
<xsl:variable name="rest" select="substring-after($header, $prefix)"/>
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="contains($rest, $prefix)">
|
||||||
|
<xsl:call-template name="shorten.header.name">
|
||||||
|
<xsl:with-param name="header" select="$rest"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="$prefix"/>
|
||||||
|
<xsl:value-of select="$rest"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="$header"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<xsl:template match="innernamespace">
|
<xsl:template match="innernamespace">
|
||||||
<xsl:param name="with-namespace-refs"/>
|
<xsl:param name="with-namespace-refs"/>
|
||||||
<xsl:param name="in-file"/>
|
<xsl:param name="in-file"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user