]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # Copyright David Abrahams 2006. Distributed under the Boost |
2 | # 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 | import docutils ; | |
5 | ||
6 | import path ; | |
7 | sources = [ path.glob . : *.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" ; | |
13 | ||
14 | for local b in $(bases) | |
15 | { | |
16 | html $(b) : $(b).rst : | |
17 | ||
18 | # | |
19 | <docutils-html>"-gdt --link-stylesheet --traceback --trim-footnote-reference-space --footnote-references=superscript "$(stylesheet) | |
20 | ; | |
21 | } | |
22 | ||
23 | alias htmls : $(bases) ; | |
24 | stage html : $(bases) ; | |
25 | ||
26 | ############################################################################### | |
27 | alias boostdoc ; | |
28 | explicit boostdoc ; | |
29 | alias boostrelease : htmls ; | |
30 | explicit boostrelease ; |