changeset 783:ab756a1f59dd

Generate HTML with Sphinx in doc/html.
author Martin Geisler <mg@daimi.au.dk>
date Sun, 25 May 2008 22:39:07 +0200
parents 4b4667df6f77
children 805292b7ef58
files run.py
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/run.py	Sun May 25 22:37:03 2008 +0200
+++ b/run.py	Sun May 25 22:39:07 2008 +0200
@@ -101,6 +101,9 @@
 def build():
     """Build a VIFF distribution."""
 
+    # Generate HTML docs in doc/html.
+    sphinx('doc')
+
     # Generate API docs in doc/api.
     epydoc('doc')
 
@@ -128,6 +131,13 @@
     execute(["epydoc", "-vv", "--config", "epydoc.conf"],
             {'VIFF_NO_WRAP': 'YES', 'target': target})
 
+@command('sphinx', 'build')
+def sphinx(build):
+    """Generate VIFF manual using Sphinx."""
+    target = "%s/html" % build
+    ensure_dir(target)
+    execute(["sphinx-build", "doc", target])
+
 @command('coverage', 'build')
 def coverage(build):
     """Run Trial unit tests and collect coverage data."""