]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # Copyright Eric Niebler 2007. Use, modification, and distribution are |
2 | # subject to the Boost Software License, Version 1.0. (See accompanying | |
3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
4 | ||
5 | import os ; | |
6 | import path ; | |
7 | import quickbook ; | |
8 | import boostbook ; | |
9 | ||
10 | local admon-graphics-path = [ path.join [ boostbook.docbook-xsl-dir ] images ] ; | |
11 | local callout-graphics-path = [ path.join $(admon-graphics-path) callouts ] ; | |
12 | ||
13 | admon-graphics-path = [ path.native $(admon-graphics-path)/ ] ; | |
14 | callout-graphics-path = [ path.native $(callout-graphics-path)/ ] ; | |
15 | ||
16 | if [ os.name ] = CYGWIN | |
17 | { | |
18 | admon-graphics-path = $(admon-graphics-path:W) ; | |
19 | callout-graphics-path = $(callout-graphics-path:W) ; | |
20 | ||
21 | admon-graphics-path = $(admon-graphics-path:T) ; | |
22 | callout-graphics-path = $(callout-graphics-path:T) ; | |
23 | } | |
24 | ||
25 | xml proto | |
26 | : | |
27 | proto.qbk | |
28 | ; | |
29 | ||
30 | boostbook standalone | |
31 | : | |
32 | proto | |
33 | : | |
34 | <xsl:param>boost.root=../../../.. | |
35 | # HTML options first: | |
36 | # Use graphics not text for navigation: | |
37 | <xsl:param>navig.graphics=1 | |
38 | # How far down we chunk nested sections, basically all of them: | |
39 | <xsl:param>chunk.section.depth=10 | |
40 | # Don't put the first section on the same page as the TOC: | |
41 | <xsl:param>chunk.first.sections=1 | |
42 | # How far down sections get TOC's | |
43 | <xsl:param>toc.section.depth=10 | |
44 | # Max depth in each TOC: | |
45 | <xsl:param>toc.max.depth=4 | |
46 | # How far down we go with TOC's | |
47 | <xsl:param>generate.section.toc.level=10 | |
48 | # Set the path to the boost-root so we find our graphics: | |
49 | #<xsl:param>boost.root=$(BOOST_ROOT) | |
50 | # location of the main index file so our links work: | |
51 | #<xsl:param>boost.libraries=$(BOOST_ROOT)/libs/libraries.htm | |
52 | ||
53 | # PDF Options: | |
54 | # TOC Generation: this is needed for FOP-0.9 and later: | |
55 | # <xsl:param>fop1.extensions=1 | |
56 | <format>pdf:<xsl:param>fop1.extensions=0 | |
57 | <format>pdf:<xsl:param>xep.extensions=1 | |
58 | # TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9! | |
59 | <format>pdf:<xsl:param>fop.extensions=0 | |
60 | # No indent on body text: | |
61 | <format>pdf:<xsl:param>body.start.indent=0pt | |
62 | # Margin size: | |
63 | <format>pdf:<xsl:param>page.margin.inner=0.5in | |
64 | # Margin size: | |
65 | <format>pdf:<xsl:param>page.margin.outer=0.5in | |
66 | # Yes, we want graphics for admonishments: | |
67 | <format>pdf:<xsl:param>admon.graphics=1 | |
68 | # Set this one for PDF generation *only*: | |
69 | # default png graphics are awful in PDF form, | |
70 | # better use SVG's instead: | |
71 | #<format>pdf:<xsl:param>admon.graphics.extension=".svg" | |
72 | #<format>pdf:<xsl:param>admon.graphics.path="$(admon-graphics-path)" | |
73 | #<format>pdf:<xsl:param>callout.graphics.path="$(callout-graphics-path)" | |
74 | <format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html | |
75 | ; | |
76 | ||
77 | ############################################################################### | |
78 | alias boostdoc | |
79 | : proto | |
80 | : | |
81 | : | |
82 | : ; | |
83 | explicit boostdoc ; | |
84 | alias boostrelease ; | |
85 | explicit boostrelease ; |