From 3b899b4f8c72990679c33d480b968882b0e6f960 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 6 Aug 2012 00:27:44 +0000 Subject: Improve documentation. git-svn-id: http://svn.drobilla.net/zix/trunk@71 df6676b4-ccc9-40e5-b5d6-7c4628a128e3 --- wscript | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index b31787a..cafa75a 100644 --- a/wscript +++ b/wscript @@ -184,27 +184,8 @@ def build_dir(ctx, subdir): return os.path.join('build', subdir) def fix_docs(ctx): - try: - os.chdir('build/doc/html') - os.system("sed -i 's/ZIX_API //' group__zix.html") - os.system("sed -i 's/ZIX_DEPRECATED //' group__zix.html") - os.remove('index.html') - os.symlink('group__zix.html', - 'index.html') - except: - Logs.error("Failed to fix up %s documentation" % APPNAME) - -def fix_docs(ctx): - try: - top = os.getcwd() - os.chdir(build_dir(ctx, 'doc/html')) - os.system("sed -i 's/ZIX_API //' group__zix.html") - os.remove('index.html') - os.symlink('group__zix.html', - 'index.html') - os.chdir(top) - except Exception: - Logs.error("Failed to fix up %s documentation" % APPNAME) + if ctx.cmd == 'build': + autowaf.make_simple_dox(APPNAME) def upload_docs(ctx): os.system("rsync -avz --delete -e ssh build/doc/html/* drobilla@drobilla.net:~/drobilla.net/docs/zix") -- cgit v1.2.1