2014-01-10 22:26:04 -05:00
|
|
|
from invoke import Collection
|
|
|
|
from invocations import docs, testing
|
|
|
|
|
2014-01-10 23:07:43 -05:00
|
|
|
|
2014-01-10 22:26:04 -05:00
|
|
|
# TODO: let from_module specify new name
|
|
|
|
api = Collection.from_module(docs)
|
|
|
|
# TODO: maybe allow rolling configuration into it too heh
|
|
|
|
api.configure({
|
2014-01-13 15:17:46 -05:00
|
|
|
'sphinx.source': 'sites/docs',
|
|
|
|
'sphinx.target': 'sites/docs/_build',
|
2014-01-10 22:26:04 -05:00
|
|
|
})
|
2014-01-13 15:17:46 -05:00
|
|
|
api.name = 'docs'
|
|
|
|
main = Collection.from_module(docs)
|
|
|
|
main.name = 'main'
|
|
|
|
main.configure({
|
|
|
|
'sphinx.source': 'sites/main',
|
|
|
|
'sphinx.target': 'sites/main/_build',
|
2014-01-10 22:26:04 -05:00
|
|
|
})
|
|
|
|
|
2014-01-13 15:17:46 -05:00
|
|
|
ns = Collection(testing.test, docs=api, main=main)
|