Use the 'pylons_sphinx_latesturl' extension.
| | |
| | | 'sphinx.ext.doctest', |
| | | 'repoze.sphinx.autointerface', |
| | | 'sphinx.ext.viewcode', |
| | | 'pylons_sphinx_latesturl', |
| | | # 'sphinx.ext.intersphinx' |
| | | ] |
| | | |
| | | |
| | | # Looks for objects in other Pyramid projects |
| | | ## intersphinx_mapping = { |
| | |
| | | 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( |
| | |
| | | docs_require = [ |
| | | 'Sphinx', |
| | | 'repoze.sphinx.autointerface', |
| | | 'pylons_sphinx_latesturl', |
| | | 'docutils', |
| | | ] |
| | | |