|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63195 - trunk/tools/boostbook/xsl
From: daniel_james_at_[hidden]
Date: 2010-06-21 16:36:51
Author: danieljames
Date: 2010-06-21 16:36:47 EDT (Mon, 21 Jun 2010)
New Revision: 63195
URL: http://svn.boost.org/trac/boost/changeset/63195
Log:
Only use '/doc/src/' for images in the main boost repository.
Text files modified:
trunk/tools/boostbook/xsl/html-base.xsl | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
Modified: trunk/tools/boostbook/xsl/html-base.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/html-base.xsl (original)
+++ trunk/tools/boostbook/xsl/html-base.xsl 2010-06-21 16:36:47 EDT (Mon, 21 Jun 2010)
@@ -21,6 +21,17 @@
</xsl:choose>
</xsl:param>
+ <xsl:param name="boost.graphics.root">
+ <xsl:choose>
+ <xsl:when test = "$boost.defaults = 'Boost'">
+ <xsl:value-of select = "concat($boost.root, '/doc/src/images/')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select = "'images/'"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:param>
+
<xsl:param name="admon.style"/>
<xsl:param name="admon.graphics">1</xsl:param>
<xsl:param name="boostbook.verbose" select="0"/>
@@ -39,12 +50,10 @@
<xsl:param name="chunk.quietly" select="not(number($boostbook.verbose))"/>
<xsl:param name="toc.max.depth">2</xsl:param>
<xsl:param name="callout.graphics.number.limit">15</xsl:param>
- <xsl:param name = "admon.graphics.path"
- select = "concat($boost.root, '/doc/src/images/')"/>
- <xsl:param name = "navig.graphics.path"
- select = "concat($boost.root, '/doc/src/images/')"/>
+ <xsl:param name = "admon.graphics.path" select="$boost.graphics.root" />
+ <xsl:param name = "navig.graphics.path" select="$boost.graphics.root" />
<xsl:param name = "callout.graphics.path"
- select = "concat($boost.root, '/doc/src/images/callouts/')"/>
+ select = "concat($boost.graphics.root, 'callouts/')"/>
<xsl:param name="admon.style">
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk