summaryrefslogtreecommitdiffhomepage
path: root/site/tasks.py
blob: e2d952b17772a3e6cbe2c8f3fc18a4d1e2eadf13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from invoke import Collection
from invocations import docs, testing

# TODO: let from_module specify new name
api = Collection.from_module(docs)
# TODO: maybe allow rolling configuration into it too heh
api.configure({
    'sphinx.source': 'api',
    'sphinx.target': 'api/_build',
})
api.name = 'api'
site = Collection.from_module(docs)
site.name = 'site'
site.configure({
    'sphinx.source': 'site',
    'sphinx.target': 'site/_build',
})

ns = Collection(testing.test, api=api, site=site)