justcheckers/tasks.py

18 lines
276 B
Python
Raw Normal View History

import os
from os import path
from invoke import task, run
@task
def docs():
build_dir = '_build'
if not path.exists(build_dir):
os.mkdir(build_dir)
run('sphinx-build -b slides . _build')
@task
def clean():
run('rm *.pyc')
run('rm _build -rv')