mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 23:04:35 +02:00
Use SaxonHE in reference generation
close #1378 Depends on: https://github.com/boostorg/build/pull/378 Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
committed by
Vinnie Falco
parent
5e88637752
commit
0ea41d5171
@@ -14,6 +14,7 @@ import quickbook ;
|
||||
import xsltproc ;
|
||||
import doxygen ;
|
||||
import modules ;
|
||||
import saxonhe ;
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
@@ -132,10 +133,10 @@ actions call-xsltproc
|
||||
#
|
||||
make reference.qbk
|
||||
:
|
||||
transform.xsl
|
||||
reference.xml
|
||||
transform.xsl
|
||||
:
|
||||
@call-xsltproc
|
||||
saxonhe.saxonhe
|
||||
;
|
||||
|
||||
# We have to make a copy of reference.qbk and put it
|
||||
|
@@ -867,14 +867,14 @@
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text> `</xsl:text>
|
||||
<xsl:value-of name="text" select="$dox-name"/>
|
||||
<xsl:value-of select="$dox-name"/>
|
||||
<xsl:text>`]</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$def-kind = 'class' or $def-kind = 'struct'">
|
||||
<xsl:text>[link </xsl:text><xsl:value-of select="$doc-ref"/>
|
||||
<xsl:value-of select="concat($ref-id,'.',$dox-name)"/>
|
||||
<xsl:text> `</xsl:text>
|
||||
<xsl:value-of name="text" select="$name"/>
|
||||
<xsl:value-of select="$name"/>
|
||||
<xsl:text>`]</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
@@ -992,7 +992,7 @@
|
||||
<xsl:text>[table [[Name][Description]]
</xsl:text>
|
||||
<xsl:for-each select="
|
||||
sectiondef[@kind='public-type']/memberdef |
|
||||
innerclass[@prot='public' and not(contains(., '_handler'))]" mode="class-table">
|
||||
innerclass[@prot='public' and not(contains(., '_handler'))]" >
|
||||
<xsl:sort select="concat(name, (.)[not(name)])"/>
|
||||
<xsl:text> [
</xsl:text>
|
||||
<xsl:choose>
|
||||
@@ -1038,7 +1038,7 @@
|
||||
<xsl:if test="count(sectiondef[@kind='public-func' or @kind='public-static-func']) > 0">
|
||||
<xsl:text>[heading Member Functions]
</xsl:text>
|
||||
<xsl:text>[table [[Name][Description]]
</xsl:text>
|
||||
<xsl:for-each select="sectiondef[@kind='public-func' or @kind='public-static-func']/memberdef" mode="class-table">
|
||||
<xsl:for-each select="sectiondef[@kind='public-func' or @kind='public-static-func']/memberdef" >
|
||||
<xsl:sort select="name"/>
|
||||
<xsl:variable name="name">
|
||||
<xsl:value-of select="name"/>
|
||||
@@ -1088,7 +1088,7 @@
|
||||
<xsl:if test="count(sectiondef[@kind='protected-func' or @kind='protected-static-func']) > 0">
|
||||
<xsl:text>[heading Protected Member Functions]
</xsl:text>
|
||||
<xsl:text>[table [[Name][Description]]
</xsl:text>
|
||||
<xsl:for-each select="sectiondef[@kind='protected-func' or @kind='protected-static-func']/memberdef" mode="class-table">
|
||||
<xsl:for-each select="sectiondef[@kind='protected-func' or @kind='protected-static-func']/memberdef" >
|
||||
<xsl:sort select="name"/>
|
||||
<xsl:variable name="name">
|
||||
<xsl:value-of select="name"/>
|
||||
@@ -1133,7 +1133,7 @@
|
||||
<xsl:if test="count(sectiondef[@kind='private-func' or @kind='protected-private-func']) > 0 and $private > 0">
|
||||
<xsl:text>[heading Private Member Functions]
</xsl:text>
|
||||
<xsl:text>[table [[Name][Description]]
</xsl:text>
|
||||
<xsl:for-each select="sectiondef[@kind='private-func']/memberdef" mode="class-table">
|
||||
<xsl:for-each select="sectiondef[@kind='private-func']/memberdef" >
|
||||
<xsl:sort select="name"/>
|
||||
<xsl:variable name="name">
|
||||
<xsl:value-of select="name"/>
|
||||
@@ -1178,7 +1178,7 @@
|
||||
<xsl:if test="count(sectiondef[@kind='public-attrib' or @kind='public-static-attrib']) > 0">
|
||||
<xsl:text>[heading Data Members]
</xsl:text>
|
||||
<xsl:text>[table [[Name][Description]]
</xsl:text>
|
||||
<xsl:for-each select="sectiondef[@kind='public-attrib' or @kind='public-static-attrib']/memberdef" mode="class-table">
|
||||
<xsl:for-each select="sectiondef[@kind='public-attrib' or @kind='public-static-attrib']/memberdef" >
|
||||
<xsl:sort select="name"/>
|
||||
<xsl:text> [
</xsl:text>
|
||||
<xsl:text> [[link </xsl:text><xsl:value-of select="$doc-ref"/>
|
||||
@@ -1194,7 +1194,7 @@
|
||||
<xsl:if test="count(sectiondef[@kind='protected-attrib' or @kind='protected-static-attrib']) > 0">
|
||||
<xsl:text>[heading Protected Data Members]
</xsl:text>
|
||||
<xsl:text>[table [[Name][Description]]
</xsl:text>
|
||||
<xsl:for-each select="sectiondef[@kind='protected-attrib' or @kind='protected-static-attrib']/memberdef" mode="class-table">
|
||||
<xsl:for-each select="sectiondef[@kind='protected-attrib' or @kind='protected-static-attrib']/memberdef" >
|
||||
<xsl:sort select="name"/>
|
||||
<xsl:text> [
</xsl:text>
|
||||
<xsl:text> [[link </xsl:text><xsl:value-of select="$doc-ref"/>
|
||||
@@ -1211,7 +1211,7 @@
|
||||
$private > 0">
|
||||
<xsl:text>[heading Private Data Members]
</xsl:text>
|
||||
<xsl:text>[table [[Name][Description]]
</xsl:text>
|
||||
<xsl:for-each select="sectiondef[@kind='private-attrib' or @kind='private-static-attrib']/memberdef" mode="class-table">
|
||||
<xsl:for-each select="sectiondef[@kind='private-attrib' or @kind='private-static-attrib']/memberdef" >
|
||||
<xsl:sort select="name"/>
|
||||
<xsl:text> [
</xsl:text>
|
||||
<xsl:text> [[link </xsl:text><xsl:value-of select="$doc-ref"/>
|
||||
@@ -1227,7 +1227,7 @@
|
||||
<xsl:if test="count(sectiondef[@kind='friend']/memberdef[not(type = 'friend class') and not(contains(name, '_helper'))]) > 0">
|
||||
<xsl:text>[heading Friends]
</xsl:text>
|
||||
<xsl:text>[table [[Name][Description]]
</xsl:text>
|
||||
<xsl:for-each select="sectiondef[@kind='friend']/memberdef[not(type = 'friend class') and not(contains(name, '_helper'))]" mode="class-table">
|
||||
<xsl:for-each select="sectiondef[@kind='friend']/memberdef[not(type = 'friend class') and not(contains(name, '_helper'))]" >
|
||||
<xsl:sort select="name"/>
|
||||
<xsl:variable name="name">
|
||||
<xsl:value-of select="name"/>
|
||||
@@ -1279,7 +1279,7 @@
|
||||
<xsl:if test="count(sectiondef[@kind='related']/memberdef) > 0">
|
||||
<xsl:text>[heading Related Functions]
</xsl:text>
|
||||
<xsl:text>[table [[Name][Description]]
</xsl:text>
|
||||
<xsl:for-each select="sectiondef[@kind='related']/memberdef" mode="class-table">
|
||||
<xsl:for-each select="sectiondef[@kind='related']/memberdef" >
|
||||
<xsl:sort select="name"/>
|
||||
<xsl:variable name="name">
|
||||
<xsl:value-of select="name"/>
|
||||
@@ -1537,26 +1537,26 @@
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@kind='typedef'">
|
||||
<xsl:call-template name="typedef" mode="class-detail">
|
||||
<xsl:call-template name="typedef">
|
||||
<xsl:with-param name="class-name" select="$class-name"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@kind='variable'">
|
||||
<xsl:call-template name="variable" mode="class-detail"/>
|
||||
<xsl:call-template name="variable"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="@kind='enum'">
|
||||
<xsl:call-template name="enum" mode="class-detail">
|
||||
<xsl:call-template name="enum">
|
||||
<xsl:with-param name="enum-name" select="$class-name"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@kind='function'">
|
||||
<xsl:text>```
</xsl:text>
|
||||
<xsl:call-template name="function" mode="class-detail"/>
|
||||
<xsl:call-template name="function"/>
|
||||
<xsl:text>```
</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="@kind='friend'">
|
||||
<xsl:text>```
</xsl:text>
|
||||
<xsl:call-template name="function" mode="class-detail"/>
|
||||
<xsl:call-template name="function"/>
|
||||
<xsl:text>```
</xsl:text>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
Reference in New Issue
Block a user