Tres Seaver
2013-09-10 57e43d0c025a4e6d30ef689b82b6393b61e3f574
Use the 'pylons_sphinx_latesturl' extension.
2 files modified
13 ■■■■■ changed files
docs/conf.py 12 ●●●●● 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,16 @@
        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',
    '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
@@ -50,6 +50,7 @@
else:
    docs_require = ['Sphinx',
                    'repoze.sphinx.autointerface',
                    'pylons_sphinx_latesturl',
                   ]
    tests_require = ['WebTest',
                     'nose',