summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-03-09 15:09:18 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2020-03-09 15:09:18 -0700
commitb251f3d6fc04b655f362bb20e4283fa74978bee4 (patch)
tree60060b5fdfe51f2a8a4192c80bb913c16c45d83e
parent9da90debf54029a50502fd759c8de56f2dc47129 (diff)
downloadnumpy-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
-rw-r--r--doc/neps/conf.py16
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)
+}
+