diff options
Diffstat (limited to 'pypy/doc/conf.py')
-rw-r--r-- | pypy/doc/conf.py | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/pypy/doc/conf.py b/pypy/doc/conf.py index 38a7c0b887..650e2db16d 100644 --- a/pypy/doc/conf.py +++ b/pypy/doc/conf.py @@ -41,9 +41,25 @@ if not on_rtd: # only import and set the theme if we're building docs locally # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.extlinks', - 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.ifconfig', - 'sphinx.ext.graphviz', 'pypyconfig'] +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.extlinks', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.ifconfig', + 'sphinx.ext.graphviz', + 'pypyconfig', + 'sphinx_affiliates'] + +# Canonical URL (including the '/') so searching from rpython docs finds these +affiliate_options = { + 'canonical_url': "https://doc.pypy.org/en/latest/" +} + +# Other sites to add to the search of this site +sphinx_affiliates = [ + 'https://rpython.readthedocs.io/en/latest/affiliate_searchindex.js', +] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -222,7 +238,9 @@ htmlhelp_basename = 'PyPydoc' # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {'python': ('http://docs.python.org/2.7', None), - 'rpython': ('http://rpython.readthedocs.org/en/latest/', None)} + 'rpython': ('http://rpython.readthedocs.org/en/latest/', None), + 'cffi': ('https://cffi.readthedocs.io/en/latest/', None), + } # -- Options for manpage output------------------------------------------------- @@ -232,4 +250,4 @@ man_pages = [ u'The PyPy Project', 1) ] -extlinks = {'source': ('https://foss.heptapod.net/pypy/pypy/src/default/%s', '')} +extlinks = {'source': ('https://foss.heptapod.net/pypy/pypy/-/tree/branch/default/%s', '')} |