Tres Seaver
2013-09-09 69626ee93a9e2538bbf96cb4ec5f4183ee849a00
Use the 'pylons_sphinx_latesturl' extension.
2 files modified
14 ■■■■■ changed files
docs/conf.py 13 ●●●●● 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,13 +157,22 @@
        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',
    'tutorials/gae/index': 'index',
    'api/chameleon_text': 'api',
    'api/chameleon_zpt': 'api',
}
html_theme_path = ['_themes']
html_theme = 'pyramid'
html_theme_options = dict(
    github_url='https://github.com/Pylons/pyramid',
    latest_url='http://docs.pylonsproject.org/projects/pyramid/en/latest/',
    outdated='true',
)
# The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths
# given in html_static_path.
setup.py
@@ -48,6 +48,7 @@
else:
    docs_require = ['Sphinx',
                    'repoze.sphinx.autointerface',
                    'pylons_sphinx_latesturl',
                   ]
    tests_require = ['Sphinx',
                     'docutils',