]>
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 | <docutils-html>"--link-stylesheet --traceback --trim-footnote-reference-space --footnote-references=superscript "$(stylesheet) | |
19 | ; | |
20 | } | |
21 | ||
22 | alias htmls : $(bases) ; | |
23 | stage . : $(bases) ; |