From eb0f335d49ac3b501626d9e1ec140978fe795df6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 7 Jan 2021 15:25:36 +0100 Subject: Generate documentation with Sphinx and add an overview --- wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index dd4beb7..b11b8aa 100644 --- a/wscript +++ b/wscript @@ -106,6 +106,9 @@ def configure(conf): conf.load('autowaf', cache=True) autowaf.set_c_lang(conf, 'c99') + if conf.env.DOCS: + conf.load('sphinx') + conf.env.BASH_COMPLETION = not Options.options.no_bash_completion conf.env.BUILD_UTILS = not Options.options.no_utils conf.env.BUILD_SHARED = not Options.options.no_shared @@ -546,7 +549,8 @@ def build(bld): obj.lib = ['rt'] # Documentation - autowaf.build_dox(bld, 'LILV', LILV_VERSION, top, out) + if bld.env.DOCS: + bld.recurse('doc/c') # Man pages bld.install_files('${MANDIR}/man1', bld.path.ant_glob('doc/*.1')) -- cgit v1.2.1