Skip to content

Commit

Permalink
Start fleshing out two-site setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Jan 22, 2014
1 parent 7d56ecb commit ccb7a6c
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ dist/
paramiko.egg-info/
test.log
docs/
!sites/docs
_build
File renamed without changes
4 changes: 4 additions & 0 deletions sites/docs/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Obtain shared config values
import os, sys
sys.path.append(os.path.abspath('..'))
from shared_conf import *
6 changes: 6 additions & 0 deletions sites/docs/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Welcome to Paramiko's documentation!
====================================

This site covers Paramiko's usage & API documentation. For basic info on what
Paramiko is, including its public changelog & how the project is maintained,
please see `the main website <http://paramiko.org>`_.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions sites/main/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Obtain shared config values
import os, sys
sys.path.append(os.path.abspath('..'))
from shared_conf import *
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion site/conf.py → sites/shared_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

# Alabaster theme
html_theme_path = [alabaster.get_path()]
html_static_path = ['_static']
# Paths relative to invoking conf.py - not this shared file
html_static_path = ['../_shared_static']
html_theme = 'alabaster'
html_theme_options = {
'logo': 'logo.png',
Expand Down
18 changes: 9 additions & 9 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
api = Collection.from_module(docs)
# TODO: maybe allow rolling configuration into it too heh
api.configure({
'sphinx.source': 'api',
'sphinx.target': 'api/_build',
'sphinx.source': 'sites/docs',
'sphinx.target': 'sites/docs/_build',
})
api.name = 'api'
site = Collection.from_module(docs)
site.name = 'site'
site.configure({
'sphinx.source': 'site',
'sphinx.target': 'site/_build',
api.name = 'docs'
main = Collection.from_module(docs)
main.name = 'main'
main.configure({
'sphinx.source': 'sites/main',
'sphinx.target': 'sites/main/_build',
})

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

0 comments on commit ccb7a6c

Please sign in to comment.