1#============================================================================== 2# Copyright (c) 2001-2011 Joel de Guzman 3# Copyright (c) 2001-2011 Hartmut Kaiser 4# 5# Use, modification and distribution is subject to the Boost Software 6# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 7# http://www.boost.org/LICENSE_1_0.txt) 8#============================================================================== 9 10project spirit/doc ; 11 12import boostbook ; 13import quickbook ; 14import modules ; 15 16path-constant here : . ; 17 18if --enable-index in [ modules.peek : ARGV ] 19{ 20 ECHO "Building the Spirit docs with automatic index generation enabled." ; 21 using auto-index ; 22 project : requirements 23 <quickbook-define>__use_auto_index__ 24 <auto-index>on 25 <auto-index-script>$(here)/index.idx 26 <format>pdf:<auto-index-internal>off 27 <format>html:<auto-index-internal>on 28 <xsl:param>index.on.type=1 29 ; 30} 31else 32{ 33 ECHO "Building the Spirit docs with automatic index generation disabled. Try building with --enable-index." ; 34} 35 36path-constant images_location : html ; 37 38boostbook spirit2 39 : 40 spirit2.qbk 41 : 42 <xsl:param>boost.root=../../../.. 43 <xsl:param>chunk.section.depth=4 44 <xsl:param>chunk.first.sections=1 45 <xsl:param>toc.section.depth=3 46 <xsl:param>toc.max.depth=3 47 <xsl:param>generate.section.toc.level=4 48 <format>html:<xsl:param>admon.graphics.path=images/ 49 50 <include>. 51 <format>pdf:<xsl:param>img.src.path=$(images_location)/ 52 <format>pdf:<xsl:param>draft.mode="no" 53 <format>pdf:<xsl:param>"boost.url.prefix=http://www.boost.org/doc/libs/release/libs/spirit/doc/html" 54 ; 55 56############################################################################### 57alias boostdoc ; 58explicit boostdoc ; 59alias boostrelease 60 : 61 spirit2 62 ../repository/doc//spirit2_repository 63 x3//spirit_x3 64 ; 65explicit boostrelease ; 66