Fetching contributors…
Cannot retrieve contributors at this time
39 lines (23 sloc) 773 Bytes
"""Run this using ``fabric``.
I can't remember any of this syntax on my own.
from functools import partial
from os import environ
from os.path import abspath, dirname
from fabric.api import local, cd
local = partial(local, capture=False)
ROOT = abspath(dirname(__file__))
environ['PYTHONPATH'] = (((environ['PYTHONPATH'] + ':') if
environ.get('PYTHONPATH') else '') + ROOT)
def doc(kind='html'):
"""Build Sphinx docs.
Requires Sphinx to be installed.
with cd('docs'):
local('make clean %s' % kind)
def updoc():
"""Build Sphinx docs and upload them to
Requires Sphinx-PyPI-upload to be installed.
local('python upload_sphinx --upload-dir=docs/_build/html')