diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-03-09 15:09:18 -0700 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-03-09 15:09:18 -0700 |
commit | b251f3d6fc04b655f362bb20e4283fa74978bee4 (patch) | |
tree | 60060b5fdfe51f2a8a4192c80bb913c16c45d83e /doc | |
parent | 9da90debf54029a50502fd759c8de56f2dc47129 (diff) | |
download | numpy-b251f3d6fc04b655f362bb20e4283fa74978bee4.tar.gz |
DOC: Allow NEPs to link to python, numpy, scipy, and matplotlib docs
This was originally added by Matti for use in NEP 41, but splitting
it off, since it is generally useful
Diffstat (limited to 'doc')
-rw-r--r-- | doc/neps/conf.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/doc/neps/conf.py b/doc/neps/conf.py index 6eed7d0c9..6837b12bd 100644 --- a/doc/neps/conf.py +++ b/doc/neps/conf.py @@ -30,7 +30,10 @@ import os # 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.imgmath',] +extensions = [ + 'sphinx.ext.imgmath', + 'sphinx.ext.intersphinx', +] # Add any paths that contain templates here, relative to this directory. templates_path = ['../source/_templates/'] @@ -218,3 +221,14 @@ texinfo_documents = [ author, 'NumPyEnhancementProposals', 'One line description of project.', 'Miscellaneous'), ] + +# ----------------------------------------------------------------------------- +# Intersphinx configuration +# ----------------------------------------------------------------------------- +intersphinx_mapping = { + 'python': ('https://docs.python.org/dev', None), + 'numpy': ('https://numpy.org/devdocs', None), + 'scipy': ('https://docs.scipy.org/doc/scipy/reference', None), + 'matplotlib': ('https://matplotlib.org', None) +} + |