Tres Seaver
2013-09-10 3a1519c78e7589f70d7a967de984de780bac2428
Use the 'pylons_sphinx_latesturl' extension.
2 files modified
15 ■■■■■ changed files
docs/conf.py 14 ●●●●● patch | view | raw | blame | history
setup.py 1 ●●●● patch | view | raw | blame | history
docs/conf.py
@@ -50,8 +50,10 @@
    'sphinx.ext.doctest',
    'repoze.sphinx.autointerface',
    'sphinx.ext.viewcode',
    'pylons_sphinx_latesturl',
#    'sphinx.ext.intersphinx'
    ]
# Looks for objects in other Pyramid projects
## intersphinx_mapping = {
@@ -155,6 +157,18 @@
        if item.endswith('.egg'):
            sys.path.append(os.path.join(parent, item))
pylons_sphinx_latesturl_base = (
    'http://docs.pylonsproject.org/projects/pyramid/en/latest/')
pylons_sphinx_latesturl_pagename_overrides = {
    # map old pagename -> new pagename
    'whatsnew-1.0': 'index',
    'whatsnew-1.1': 'index',
    'whatsnew-1.2': 'index',
    'whatsnew-1.3': 'index',
    'tutorials/gae/index': 'index',
    'api/chameleon_text': 'api',
    'api/chameleon_zpt': 'api',
}
html_theme_path = ['_themes']
html_theme = 'pyramid'
html_theme_options = dict(
setup.py
@@ -56,6 +56,7 @@
docs_require = [
    'Sphinx',
    'repoze.sphinx.autointerface',
    'pylons_sphinx_latesturl',
    'docutils',
]