From b029479301c61ac78e76e0ea3f184fd3c07a3c4e Mon Sep 17 00:00:00 2001 From: Michael Merickel <michael@merickel.org> Date: Fri, 20 May 2016 05:41:13 +0200 Subject: [PATCH] enable docs to point to /latest --- docs/conf.py | 32 +++++++++++++++----------------- 1 files changed, 15 insertions(+), 17 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 9a4c508..7a9d287 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -55,8 +55,7 @@ 'sphinx.ext.viewcode', 'sphinx.ext.intersphinx', 'sphinxcontrib.programoutput', - # enable pylons_sphinx_latesturl when this branch is no longer "latest" - # 'pylons_sphinx_latesturl', + 'pylons_sphinx_latesturl', ] # Looks for objects in external projects @@ -126,21 +125,20 @@ # Options for HTML output # ----------------------- -# enable pylons_sphinx_latesturl when this branch is no longer "latest" -# 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', -# 'whatsnew-1.5': 'index', -# 'tutorials/gae/index': 'index', -# 'api/chameleon_text': 'api', -# 'api/chameleon_zpt': 'api', -# } +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', + 'whatsnew-1.5': 'index', + 'tutorials/gae/index': 'index', + 'api/chameleon_text': 'api', + 'api/chameleon_zpt': 'api', +} html_theme = 'pyramid' html_theme_path = pylons_sphinx_themes.get_html_themes_path() -- Gitblit v1.9.3