Use new behavior from newer Invoke

This commit is contained in:
Jeff Forcier 2014-01-13 16:16:30 -08:00
parent ccb7a6c2cd
commit c224fdecf1
1 changed files with 4 additions and 8 deletions

View File

@ -2,17 +2,13 @@ from invoke import Collection
from invocations import docs, testing from invocations import docs, testing
# TODO: let from_module specify new name # Usage doc/API site
api = Collection.from_module(docs) api = Collection.from_module(docs, name='docs', config={
# TODO: maybe allow rolling configuration into it too heh
api.configure({
'sphinx.source': 'sites/docs', 'sphinx.source': 'sites/docs',
'sphinx.target': 'sites/docs/_build', 'sphinx.target': 'sites/docs/_build',
}) })
api.name = 'docs' # Main/about/changelog site
main = Collection.from_module(docs) main = Collection.from_module(docs, name='main', config={
main.name = 'main'
main.configure({
'sphinx.source': 'sites/main', 'sphinx.source': 'sites/main',
'sphinx.target': 'sites/main/_build', 'sphinx.target': 'sites/main/_build',
}) })