From f95f22013d51133ec1a7b1554878ff354b9f0f21 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 20 Dec 2020 20:20:07 +0100 Subject: Generate documentation with Sphinx --- wscript | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 6812c532..fa2d2479 100644 --- a/wscript +++ b/wscript @@ -43,6 +43,9 @@ def configure(conf): conf.load('compiler_c', cache=True) conf.load('autowaf', cache=True) + if conf.env.DOCS: + conf.load('sphinx') + if not autowaf.set_c_lang(conf, 'c11', mandatory=False): autowaf.set_c_lang(conf, 'c99') @@ -264,13 +267,7 @@ def build(bld): # Documentation if bld.env.DOCS: - autowaf.build_dox(bld, 'SERD', SERD_VERSION, top, out) - bld(features='subst', - source='doc/index.html.in', - target='index.html', - install_path='', - name='index', - SERD_VERSION=SERD_VERSION) + bld.recurse('doc/c') # Man page bld.install_files('${MANDIR}/man1', 'doc/serdi.1') -- cgit v1.2.1