Run the xmlto command to generate html docs. Caveat1: requires waf trunk; Caveat2: xmlto fails (does not seem to validate), I don't know why.
This commit is contained in:
parent
167e832d9b
commit
d1699ea084
@ -9,8 +9,6 @@
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
# TODO: we want to build this using xmlto, i.e. doxmlto html-nochunks -m config.xsl pk-reference.xml
|
||||
|
||||
import Utils
|
||||
|
||||
## FIXME: shouldn't it be: doc_subdir = os.path.join('doc', Utils.g_module.APPNAME) ?
|
||||
@ -20,3 +18,11 @@ install_files('DATADIR', doc_subdir, 'pk-reference.html')
|
||||
install_files('DATADIR', doc_subdir, 'pk-structure.png')
|
||||
install_files('DATADIR', doc_subdir, 'docbook.css')
|
||||
|
||||
# xmlto html-nochunks -m config.xsl pk-reference.xml
|
||||
cmd = bld.create_obj('command-output')
|
||||
cmd.hidden_outputs = 'pk-reference.html'
|
||||
cmd.command = 'xmlto'
|
||||
cmd.command_is_external = True
|
||||
cmd.argv = ['html-nochunks', '-m', cmd.input_file('config.xsl'),
|
||||
'--searchpath', cmd.input_dir('.'), '-o', cmd.output_dir('.'),
|
||||
cmd.input_file('pk-reference.xml')]
|
||||
|
Loading…
Reference in New Issue
Block a user