]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # -*- python -*- |
2 | # | |
3 | # Copyright (c) 2016 Stefan Seefeld | |
4 | # All rights reserved. | |
5 | # | |
6 | # Distributed under the Boost Software License, Version 1.0. | |
7 | # (See accompanying file LICENSE_1_0.txt or copy at | |
8 | # http://www.boost.org/LICENSE_1_0.txt) | |
9 | ||
10 | Import('env') | |
11 | ||
12 | env.QuickBook('python.bbk', 'python.qbk', | |
13 | ['building.qbk', | |
14 | 'configuration.qbk', | |
15 | 'support.qbk', | |
16 | 'faq.qbk', | |
17 | 'glossary.qbk']) | |
18 | ||
19 | env.QuickBook('tutorial.bbk', 'tutorial.qbk') | |
20 | env.QuickBook('reference.bbk', 'reference.qbk', | |
21 | Glob('reference/*.qbk')) | |
22 | ||
23 | ||
24 | env.BoostBook('python.dbk', 'python.bbk') | |
25 | env.BoostBook('tutorial.dbk', 'tutorial.bbk') | |
26 | env.BoostBook('reference.dbk', 'reference.bbk') | |
27 | ||
28 | images = Glob('images/*.*') + Glob('images/callouts/*.*') | |
29 | ||
30 | env.BoostHTML('html/', 'python.dbk', | |
31 | resources=['boostbook.css'] + images, | |
32 | args=['--stringparam', 'generate.toc', '"library nop; chapter toc; section toc;"', | |
33 | '--stringparam', 'html.stylesheet', 'boostbook.css', | |
34 | '--stringparam', 'boost.image.src', 'images/bpl.png', | |
35 | '--stringparam', 'boost.graphics.root', 'images/', | |
36 | '--stringparam', 'boost.defaults', 'none', | |
37 | '--param', 'toc.max.depth', '3', | |
38 | '--param', 'toc.section.depth' ,'2', | |
39 | '--param', 'chunk.section.depth', '1']) | |
40 | env.BoostHTML('html/tutorial/', 'tutorial.dbk', | |
41 | args=['--stringparam', 'html.stylesheet', '../boostbook.css', | |
42 | '--stringparam', 'boost.image.src', '../images/bpl.png', | |
43 | '--stringparam', 'boost.graphics.root', '../images/']) | |
44 | env.BoostHTML('html/reference/', 'reference.dbk', | |
45 | args=['--stringparam', 'html.stylesheet', '../boostbook.css', | |
46 | '--stringparam', 'boost.image.src', '../images/bpl.png', | |
47 | '--stringparam', 'boost.graphics.root', '../images/']) | |
48 | ||
49 | env.BoostRST('html/article.html', 'article.rst', resources=['rst.css']) | |
50 | ||
51 | if env['NUMPY']: | |
52 | env.BoostSphinx('html/numpy', 'numpy/') |