diff options
author | Chris Johns <chrisj@rtems.org> | 2013-02-24 20:09:15 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-02-24 20:09:15 +1100 |
commit | eef48f9f74e87b9f8f5b54ecbd63dfc1019b5d01 (patch) | |
tree | 0ee7cc475e748a430bfb17d11ce04ad66cdc3de8 /doc/wscript | |
parent | Update documentation. Lots more is needed before it is finished. (diff) | |
download | rtems-source-builder-eef48f9f74e87b9f8f5b54ecbd63dfc1019b5d01.tar.bz2 |
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.
Diffstat (limited to 'doc/wscript')
-rw-r--r-- | doc/wscript | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/wscript b/doc/wscript new file mode 100644 index 0000000..879412c --- /dev/null +++ b/doc/wscript @@ -0,0 +1,20 @@ +# +# 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) |