Steve Piercy
2015-05-12 5ec59fbc7c5f1a05263647ffb087215437446ec3
Merge pull request #1668 from stevepiercy/1.4-branch

add "Read the latest version of this page" red button to 1.4-branch
1 files modified
16 ■■■■■ changed files
docs/conf.py 16 ●●●●● patch | view | raw | blame | history
docs/conf.py
@@ -129,13 +129,27 @@
# Options for HTML output
# -----------------------
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',
    'whatsnew-1.4': 'index',
    'tutorials/gae/index': 'index',
    'api/chameleon_text': 'api',
    'api/chameleon_zpt': 'api',
}
# Add and use Pylons theme
html_theme = 'pyramid'
html_theme_path = pylons_sphinx_themes.get_html_themes_path()
html_theme_options = dict(
    github_url='https://github.com/Pylons/pyramid',
    latest_url='http://docs.pylonsproject.org/projects/pyramid/en/latest/',
#    in_progress='true',
    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