doc: Use the internal asciidoc tool.

This commit is contained in:
Chris Johns 2014-05-14 16:38:50 +10:00
parent e119c6a05e
commit e249bd1db6

View File

@ -2,11 +2,19 @@
# Waf build script to build the Source Builder Documentation.
#
import os.path
version = "1.0.0"
asciidoc = os.path.join(os.getcwd(),
'..', 'source-builder', 'sb', 'asciidoc')
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']
ctx.env.ASCIIDOC = ctx.find_program(['asciidoc.py'],
path_list = [asciidoc],
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')