mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Conceal template parameter defaults that refer to implementation details.
Similar to other contexts, replace default types and values in template parameter lists that mention implementation details, as configured in boost.doxygen.detail parameter, with "unspecified". This fixes dangling refs to implementation detail types and values that were removed from BoostBook output but are still mentioned in template parameter defaults.
This commit is contained in:
parent
55bd25054b
commit
8b5189e24e
@ -670,8 +670,15 @@
|
||||
</xsl:attribute>
|
||||
<xsl:if test="defval">
|
||||
<default>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains(string(defval), $boost.doxygen.detail)">
|
||||
<emphasis>unspecified</emphasis>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="defval/*|defval/text()"
|
||||
mode="passthrough"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</default>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="../../detaileddescription//parameterlist[@kind='templateparam']/parameteritem">
|
||||
@ -696,8 +703,15 @@
|
||||
</xsl:attribute>
|
||||
<xsl:if test="defval">
|
||||
<default>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains(string(defval), $boost.doxygen.detail)">
|
||||
<emphasis>unspecified</emphasis>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="defval/*|defval/text()"
|
||||
mode="passthrough"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</default>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="../../detaileddescription//parameterlist[@kind='templateparam']/parameteritem">
|
||||
@ -722,8 +736,15 @@
|
||||
</type>
|
||||
<xsl:if test="defval">
|
||||
<default>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains(string(defval), $boost.doxygen.detail)">
|
||||
<emphasis>unspecified</emphasis>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="defval/*|defval/text()"
|
||||
mode="passthrough"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</default>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="../../detaileddescription//parameterlist[@kind='templateparam']/parameteritem">
|
||||
@ -1143,7 +1164,6 @@
|
||||
mode="passthrough"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
</default>
|
||||
</xsl:if>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user