mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
doc: Use the internal asciidoc tool.
This commit is contained in:
parent
e119c6a05e
commit
e249bd1db6
12
doc/wscript
12
doc/wscript
@ -2,11 +2,19 @@
|
|||||||
# Waf build script to build the Source Builder Documentation.
|
# Waf build script to build the Source Builder Documentation.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import os.path
|
||||||
|
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
|
|
||||||
|
asciidoc = os.path.join(os.getcwd(),
|
||||||
|
'..', 'source-builder', 'sb', 'asciidoc')
|
||||||
|
|
||||||
def configure(ctx):
|
def configure(ctx):
|
||||||
ctx.env.ASCIIDOC = ctx.find_program(['asciidoc.py'], mandatory = True)
|
ctx.env.ASCIIDOC = ctx.find_program(['asciidoc.py'],
|
||||||
ctx.env.ASCIIDOC_FLAGS = ['-b', 'html5', '-a', 'data-uri', '-a', 'icons', '-a', 'max-width=55em-a']
|
path_list = [asciidoc],
|
||||||
|
mandatory = True)
|
||||||
|
ctx.env.ASCIIDOC_FLAGS = ['-b', 'html5', '-a', 'data-uri',
|
||||||
|
'-a', 'icons', '-a', 'max-width=55em-a']
|
||||||
|
|
||||||
def build(ctx):
|
def build(ctx):
|
||||||
ctx(target = 'source-builder.html', source = 'source-builder.txt')
|
ctx(target = 'source-builder.html', source = 'source-builder.txt')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user