• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7import boostbook ;
8import quickbook ;
9import docutils ;
10import os ;
11
12path-constant here : . ;
13path-constant images : html/images ;
14
15project python/doc
16    : requirements
17      -<xsl:param>boost.defaults=Boost
18      <format>html:<xsl:param>boost.defaults=none
19      <format>html:<xsl:param>toc.max.depth=3
20      <format>html:<xsl:param>toc.section.depth=2
21      <format>html:<xsl:param>chunk.section.depth=1
22    ;
23
24make numpy : numpy/index.rst : @sphinx-build ;
25
26if [ os.name ] = NT
27{
28  actions sphinx-build { chdir "$(>:D)" && make clean && make html}
29}
30else
31{
32  actions sphinx-build { make -C "$(>:D)" clean html}
33}
34
35boostbook python : python.qbk
36	  : <format>html:<name>$(here)/html
37	    <format>html:<xsl:param>generate.toc="library nop; chapter toc; section toc;"
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	    ;
42
43boostbook tutorial : tutorial.qbk
44	  : <format>html:<name>$(here)/html/tutorial
45	    <format>html:<xsl:param>html.stylesheet=../boostbook.css
46            <format>html:<xsl:param>boost.image.src=../images/boost.png
47            <format>html:<xsl:param>boost.graphics.root=../images/
48	    ;
49
50boostbook reference : reference.qbk
51	  : <format>html:<name>$(here)/html/reference
52	    <format>html:<xsl:param>html.stylesheet=../boostbook.css
53            <format>html:<xsl:param>boost.image.src=../images/boost.png
54            <format>html:<xsl:param>boost.graphics.root=../images/
55	    ;
56
57html article : article.rst
58         : <location>html
59	   <docutils-html>"--link-stylesheet --traceback --trim-footnote-reference-space --footnote-references=superscript --stylesheet=rst.css"
60            ;
61
62###############################################################################
63alias boostdoc ;
64explicit boostdoc ;
65alias boostrelease : python tutorial reference numpy article ;
66explicit boostrelease ;
67