mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +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. -->
|
unless everything fits on a single line. -->
|
||||||
<xsl:param name="boost.short.result.type">12</xsl:param>
|
<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 -->
|
<!-- Display a function declaration -->
|
||||||
<xsl:template name="function">
|
<xsl:template name="function">
|
||||||
<xsl:param name="indentation"/>
|
<xsl:param name="indentation"/>
|
||||||
@ -822,7 +826,7 @@
|
|||||||
list-presentation="table"
|
list-presentation="table"
|
||||||
</xsl:processing-instruction>
|
</xsl:processing-instruction>
|
||||||
<xsl:for-each select="parameter|signature/parameter">
|
<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">
|
<xsl:if test="description">
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
@ -853,7 +857,7 @@
|
|||||||
</xsl:processing-instruction>
|
</xsl:processing-instruction>
|
||||||
<xsl:for-each select="template/template-type-parameter|
|
<xsl:for-each select="template/template-type-parameter|
|
||||||
template/template-nontype-parameter">
|
template/template-nontype-parameter">
|
||||||
<xsl:sort select="attribute::name"/>
|
<xsl:sort select="attribute::name[$boost.sort.params!=0]"/>
|
||||||
<xsl:if test="purpose">
|
<xsl:if test="purpose">
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user