Boost logo

Boost Docs :

From: John Maddock (john_at_[hidden])
Date: 2007-06-06 08:25:33


Matias Capeletto wrote:
> On 6/4/07, Matias Capeletto <matias.capeletto_at_[hidden]> wrote:
>> Hello,
>>
>> Now that many boost libraries have a logo [1], It will be nice to
>> have
>> an option in boostbook to include it in the header of each page.
>>
>> I have done this for my doxygen docs:
>> http://tinyurl.com/2nwjxm
>>
>> IMO it is an easy to implement feature. My knowledge of XLST is very
>> limited but I can try to do it myself if no other volunteer.
>
> Ok, there seems to be no interest :(
> Anyway I have implemented it
> You use it like:
>
> ---------------------------------------------------------------------------------------------
> boostbook standalone
> :
> bimap
> :
> <xsl:param>toc.max.depth=2
> <xsl:param>toc.section.depth=4
> <xsl:param>chunk.section.depth=2
>
> <xsl:param>logo.image.src="'images/bimap/boost.bimap.header.png'" ;
> ---------------------------------------------------------------------------------------------
>
> If you do not specify a logo.image.src, then no image is rendered.
>
> Index: navbar.xsl
> ===================================================================
> RCS file: /cvsroot/boost/boost/tools/boostbook/xsl/navbar.xsl,v
> retrieving revision 1.6
> diff -r1.6 navbar.xsl
> 44a45
>>
> 46a48,52
>> <!-- chapter logo support -->
>> <xsl:param name = "logo.image.src" select = "''"/>
>> <xsl:param name = "logo.image.alt" select = "'Chapter Logo'"/>
>>
>>
> 73c79,92
> < </td><xsl:choose>
> ---
>>
>> <!-- Chapter Logo Support -->
>> <xsl:if test = "$logo.image.src != ''">
>> <img alt="{$logo.image.alt}">
>> <xsl:attribute name="src">
>> <xsl:call-template
>> name="href.target.relative">
>> <xsl:with-param name="target"
>> select="$logo.image.src"/> </xsl:call-template>
>> </xsl:attribute> </img>
>> </xsl:if>
>>
>> </td>
>> <xsl:choose>
>
>
> Is there interest?
> Can I commit this changes?

Interest yes, but can this be fixed up so that the default behaviour when
logo.image.src is not specified is to use $boost.root/boost.png ?

Actually the following section:

<img alt="{$boost.image.alt}" width="{$boost.image.w}"
height="{$boost.image.h}">
<xsl:attribute name="src">
<xsl:call-template name="href.target.relative">
<xsl:with-param name="target" select="$boost.image.src"/>
</xsl:call-template>
</xsl:attribute>
</img>

in navbar.xsl should support this already, except it seems not to work?

Confused yours, John.


Boost-Docs list run by mbergal at meta-comm.com