diff --git a/docs/wscript_build b/docs/wscript_build index dd64aaaef..9951d58fd 100644 --- a/docs/wscript_build +++ b/docs/wscript_build @@ -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')]