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) 4import docutils ; 5 6import path ; 7sources = [ path.glob . : *.rst ] ; 8bases = $(sources:S=) ; 9 10# This is a path relative to the html/ subdirectory where the 11# generated output will eventually be moved. 12stylesheet = "--stylesheet=../../rst.css" ; 13 14for 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 22alias htmls : $(bases) ; 23stage . : $(bases) ; 24