mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Made the docs better in how they display the "file to include" and also example
program lists
This commit is contained in:
parent
b80edc8839
commit
953fbe1772
@ -504,8 +504,11 @@ function BigToggle(node)
|
|||||||
<BR/>
|
<BR/>
|
||||||
<xsl:apply-templates select="description"/>
|
<xsl:apply-templates select="description"/>
|
||||||
|
|
||||||
<xsl:if test="spec_file">
|
<xsl:if test="file">
|
||||||
<BR/>
|
<BR/>
|
||||||
|
<BR/><B><font style='font-size:1.4em'><tt>#include <<xsl:value-of select="file"/>></tt></font></B>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="spec_file">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="spec_file/@link = 'true'">
|
<xsl:when test="spec_file/@link = 'true'">
|
||||||
<BR/>
|
<BR/>
|
||||||
@ -519,9 +522,6 @@ function BigToggle(node)
|
|||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:if test="file">
|
|
||||||
<BR/><B>File to include: </B><xsl:value-of select="file"/>
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:if test="body_file">
|
<xsl:if test="body_file">
|
||||||
<BR/>
|
<BR/>
|
||||||
The body for the <xsl:value-of select="name"/> component can be found
|
The body for the <xsl:value-of select="name"/> component can be found
|
||||||
@ -586,10 +586,10 @@ function BigToggle(node)
|
|||||||
<xsl:for-each select="example">
|
<xsl:for-each select="example">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="position() = last()">
|
<xsl:when test="position() = last()">
|
||||||
<a href="{.}"><xsl:value-of select="position()"/></a>
|
<a href="{.}"><xsl:value-of select="substring-before(.,'.html')"/></a>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<a href="{.}"><xsl:value-of select="position()"/></a>,
|
<a href="{.}"><xsl:value-of select="substring-before(.,'.html')"/></a>,
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
Loading…
Reference in New Issue
Block a user