viff

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 diff
     1.1 --- a/run.py	Sun May 25 22:37:03 2008 +0200
     1.2 +++ b/run.py	Sun May 25 22:39:07 2008 +0200
     1.3 @@ -101,6 +101,9 @@
     1.4  def build():
     1.5      """Build a VIFF distribution."""
     1.6  
     1.7 +    # Generate HTML docs in doc/html.
     1.8 +    sphinx('doc')
     1.9 +
    1.10      # Generate API docs in doc/api.
    1.11      epydoc('doc')
    1.12  
    1.13 @@ -128,6 +131,13 @@
    1.14      execute(["epydoc", "-vv", "--config", "epydoc.conf"],
    1.15              {'VIFF_NO_WRAP': 'YES', 'target': target})
    1.16  
    1.17 +@command('sphinx', 'build')
    1.18 +def sphinx(build):
    1.19 +    """Generate VIFF manual using Sphinx."""
    1.20 +    target = "%s/html" % build
    1.21 +    ensure_dir(target)
    1.22 +    execute(["sphinx-build", "doc", target])
    1.23 +
    1.24  @command('coverage', 'build')
    1.25  def coverage(build):
    1.26      """Run Trial unit tests and collect coverage data."""