mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 02:43:58 +00:00
Merge pull request #27 from Lastique/feature/disable_params_sorting
Support disabling sorting function and template parameters
This commit is contained in:
commit
0b665ad198
@ -24,6 +24,10 @@
|
||||
unless everything fits on a single line. -->
|
||||
<xsl:param name="boost.short.result.type">12</xsl:param>
|
||||
|
||||
<!-- When true, the stylesheet will sort parameters of functions and
|
||||
templates alphabetically in detailed description. -->
|
||||
<xsl:param name="boost.sort.params">1</xsl:param>
|
||||
|
||||
<!-- Display a function declaration -->
|
||||
<xsl:template name="function">
|
||||
<xsl:param name="indentation"/>
|
||||
@ -822,7 +826,7 @@
|
||||
list-presentation="table"
|
||||
</xsl:processing-instruction>
|
||||
<xsl:for-each select="parameter|signature/parameter">
|
||||
<xsl:sort select="attribute::name"/>
|
||||
<xsl:sort select="attribute::name[$boost.sort.params!=0]"/>
|
||||
<xsl:if test="description">
|
||||
<varlistentry>
|
||||
<term>
|
||||
@ -853,7 +857,7 @@
|
||||
</xsl:processing-instruction>
|
||||
<xsl:for-each select="template/template-type-parameter|
|
||||
template/template-nontype-parameter">
|
||||
<xsl:sort select="attribute::name"/>
|
||||
<xsl:sort select="attribute::name[$boost.sort.params!=0]"/>
|
||||
<xsl:if test="purpose">
|
||||
<varlistentry>
|
||||
<term>
|
||||
|
Loading…
x
Reference in New Issue
Block a user