|
1 | | -# Copyright David Abrahams 2006. Distributed under the Boost |
2 | | -# Software License, Version 1.0. (See accompanying |
| 1 | +# Copyright (c) 2006 Joel de Guzman |
| 2 | +# Copyright (c) 2015 Stefan Seefeld |
| 3 | +# |
| 4 | +# Distributed under the Boost Software License, Version 1.0. (See accompanying |
3 | 5 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
4 | | -import docutils ; |
5 | 6 |
|
6 | | -import path ; |
7 | | -sources = building.rst ; |
8 | | -bases = $(sources:S=) ; |
9 | | - |
10 | | -# This is a path relative to the html/ subdirectory where the |
11 | | -# generated output will eventually be moved. |
12 | | -stylesheet = "--stylesheet=../../../rst.css" ; |
| 7 | +path-constant here : . ; |
| 8 | +path-constant images : html/images ; |
13 | 9 |
|
14 | | -for local b in $(bases) |
15 | | -{ |
16 | | - html $(b) : $(b).rst : |
17 | | - |
18 | | - <docutils-html>"-gdt --source-url="./$(b).rst" --link-stylesheet --traceback --trim-footnote-reference-space --footnote-references=superscript "$(stylesheet) |
19 | | - ; |
20 | | -} |
21 | 10 |
|
22 | | -alias htmls : $(bases) ; |
23 | | -stage . : $(bases) ; |
| 11 | +project python/doc |
| 12 | + : requirements <format>html:<xsl:param>boost.defaults=Boost |
| 13 | + <format>html:<xsl:param>toc.max.depth=3 |
| 14 | + <format>html:<xsl:param>toc.section.depth=3 |
| 15 | + <format>html:<xsl:param>chunk.section.depth=3 |
| 16 | + ; |
| 17 | + |
| 18 | +import boostbook ; |
| 19 | +import quickbook ; |
| 20 | + |
| 21 | +boostbook python : python.qbk |
| 22 | + : <format>html:<name>$(here)/html |
| 23 | + <format>html:<xsl:param>generate.toc="library nop; chapter toc; section toc;" |
| 24 | + <format>html:<xsl:param>html.stylesheet=boostbook.css |
| 25 | + <format>html:<xsl:param>boost.image.src=images/boost.png |
| 26 | + <format>html:<xsl:param>boost.graphics.root=images/ |
| 27 | + ; |
| 28 | + |
| 29 | +boostbook tutorial : tutorial.qbk |
| 30 | + : <format>html:<name>$(here)/html/tutorial |
| 31 | + <format>html:<xsl:param>html.stylesheet=../boostbook.css |
| 32 | + <format>html:<xsl:param>boost.image.src=../images/boost.png |
| 33 | + <format>html:<xsl:param>boost.graphics.root=../images/ |
| 34 | + ; |
| 35 | + |
| 36 | +boostbook reference : reference.qbk |
| 37 | + : <format>html:<name>$(here)/html/reference |
| 38 | + <format>html:<xsl:param>html.stylesheet=../boostbook.css |
| 39 | + <format>html:<xsl:param>boost.image.src=../images/boost.png |
| 40 | + <format>html:<xsl:param>boost.graphics.root=../images/ |
| 41 | + ; |
0 commit comments