forked from paramiko/paramiko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename 'main' doctree to 'www'; refactor sphinx task conf
- Loading branch information
1 parent
c224fde
commit 2da9142
Showing
11 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
from os.path import join | ||
|
||
from invoke import Collection | ||
from invocations import docs, testing | ||
from invocations import docs as _docs, testing | ||
|
||
|
||
d = 'sites' | ||
|
||
# Usage doc/API site | ||
api = Collection.from_module(docs, name='docs', config={ | ||
'sphinx.source': 'sites/docs', | ||
'sphinx.target': 'sites/docs/_build', | ||
# Usage doc/API site (published as docs.paramiko.org) | ||
path = join(d, 'docs') | ||
docs = Collection.from_module(_docs, name='docs', config={ | ||
'sphinx.source': path, | ||
'sphinx.target': join(path, '_build'), | ||
}) | ||
# Main/about/changelog site | ||
main = Collection.from_module(docs, name='main', config={ | ||
'sphinx.source': 'sites/main', | ||
'sphinx.target': 'sites/main/_build', | ||
|
||
# Main/about/changelog site ((www.)?paramiko.org) | ||
path = join(d, 'www') | ||
www = Collection.from_module(_docs, name='www', config={ | ||
'sphinx.source': path, | ||
'sphinx.target': join(path, '_build'), | ||
}) | ||
|
||
ns = Collection(testing.test, docs=api, main=main) | ||
ns = Collection(testing.test, docs=docs, www=www) |