Add support for remarks and important blocks in Doxygen.

Convert \remark commands to <note> in BoostBook. Change \attention to
<important>, and also convert \important to <important>.
This commit is contained in:
Andrey Semashev 2024-06-29 19:57:46 +03:00
parent cdb1643530
commit 1198d50fd9

View File

@ -1605,12 +1605,18 @@
</xsl:if>
</xsl:template>
<xsl:template match="para/simplesect[@kind='note' or @kind='attention']" mode="passthrough">
<xsl:template match="para/simplesect[@kind='note' or @kind='remark']" mode="passthrough">
<note>
<xsl:apply-templates mode="passthrough"/>
</note>
</xsl:template>
<xsl:template match="para/simplesect[@kind='attention' or @kind='important']" mode="passthrough">
<important>
<xsl:apply-templates mode="passthrough"/>
</important>
</xsl:template>
<xsl:template match="para/simplesect[@kind='warning']" mode="passthrough">
<warning>
<xsl:apply-templates mode="passthrough"/>