Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.525 kb
from __future__ import with_statement
from fabric.api import lcd, local, task
@task(default=True)
def build(clean='no', browse_='no'):
"""
Generate the Sphinx documentation.
"""
c = ""
if clean.lower() in ['yes', 'y']:
c = "clean "
b = ""
with lcd('docs'):
local('make %shtml%s' % (c, b))
if browse_.lower() in ['yes', 'y']:
browse()
@task
def browse():
"""
Open the current dev docs in a browser tab.
"""
local("open docs/_build/html/index.html")
Jump to Line
Something went wrong with that request. Please try again.