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/>
|
||||
<xsl:apply-templates select="description"/>
|
||||
|
||||
<xsl:if test="spec_file">
|
||||
<xsl:if test="file">
|
||||
<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:when test="spec_file/@link = 'true'">
|
||||
<BR/>
|
||||
@ -519,9 +522,6 @@ function BigToggle(node)
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="file">
|
||||
<BR/><B>File to include: </B><xsl:value-of select="file"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="body_file">
|
||||
<BR/>
|
||||
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:choose>
|
||||
<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:otherwise>
|
||||
<a href="{.}"><xsl:value-of select="position()"/></a>,
|
||||
<a href="{.}"><xsl:value-of select="substring-before(.,'.html')"/></a>,
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
Loading…
Reference in New Issue
Block a user