diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2020-03-09 23:20:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 23:20:49 +0000 |
commit | 928425156abfa65a613fac016f86d6a3b6c03768 (patch) | |
tree | 60060b5fdfe51f2a8a4192c80bb913c16c45d83e | |
parent | 9da90debf54029a50502fd759c8de56f2dc47129 (diff) | |
parent | b251f3d6fc04b655f362bb20e4283fa74978bee4 (diff) | |
download | numpy-928425156abfa65a613fac016f86d6a3b6c03768.tar.gz |
Merge pull request #15733 from seberg/nep-intersphinx
DOC: Allow NEPs to link to python, numpy, scipy, and matplotlib docs
-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) +} + |