Start fleshing out two-site setup

This commit is contained in:
Jeff Forcier 2014-01-13 12:17:46 -08:00
parent 7d56ecb1a7
commit ccb7a6c2cd
16 changed files with 26 additions and 10 deletions

1
.gitignore vendored
View File

@ -5,4 +5,5 @@ dist/
paramiko.egg-info/
test.log
docs/
!sites/docs
_build

View File

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

4
sites/docs/conf.py Normal file
View File

@ -0,0 +1,4 @@
# Obtain shared config values
import os, sys
sys.path.append(os.path.abspath('..'))
from shared_conf import *

6
sites/docs/index.rst Normal file
View File

@ -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>`_.

4
sites/main/conf.py Normal file
View File

@ -0,0 +1,4 @@
# Obtain shared config values
import os, sys
sys.path.append(os.path.abspath('..'))
from shared_conf import *

View File

@ -13,7 +13,8 @@ rss_description = 'Paramiko project news'
# 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',

View File

@ -6,15 +6,15 @@ from invocations import docs, testing
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)