Chris Johns eef48f9f74 Make the doco more visiable.
A user asked for the documentation to be move higher in the
source tree so it is easier to find.
2013-02-24 20:09:15 +11:00

21 lines
731 B
Python

#
# Waf build script to build the Source Builder Documentation.
#
version = "1.0.0"
def configure(ctx):
ctx.env.ASCIIDOC = ctx.find_program(['asciidoc.py'], mandatory = True)
ctx.env.ASCIIDOC_FLAGS = ['-b', 'html5', '-a', 'data-uri', '-a', 'icons', '-a', 'max-width=55em-a']
def build(ctx):
ctx(target = 'source-builder.html', source = 'source-builder.txt')
import waflib.TaskGen
waflib.TaskGen.declare_chain(name = 'html',
rule = '${ASCIIDOC} ${ASCIIDOC_FLAGS} -o ${TGT} ${SRC}',
shell = False,
ext_in = '.txt',
ext_out = '.html',
reentrant = False)