summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-10-19 00:34:58 +0200
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-10-19 00:34:58 +0200
commit68b6847767c5f6914efd1891df957f7db0efdc1e (patch)
treedb7b18a07506fe6cbdd24b5a44329adbb3be63fd /docs
parent109bde8883ed07092443ae51fe1f5fe732300a13 (diff)
downloadpython-setuptools-git-68b6847767c5f6914efd1891df957f7db0efdc1e.tar.gz
Enable intersphinx to link against CPython docs
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 982f5e62..a0449699 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -19,6 +19,7 @@ github_sponsors_url = f'{github_url}/sponsors'
extensions = [
'sphinx.ext.extlinks', # allows to create custom roles easily
+ 'sphinx.ext.intersphinx', # allows interlinking external docs sites
'jaraco.packaging.sphinx',
'rst.linker',
]
@@ -155,3 +156,10 @@ nitpicky = True
# Ref: https://github.com/python-attrs/attrs/pull/571/files\
# #diff-85987f48f1258d9ee486e3191495582dR82
default_role = 'any'
+
+
+# Allow linking objects on other Sphinx sites seamlessly:
+intersphinx_mapping = {
+ 'python': ('https://docs.python.org/3', None),
+ 'python2': ('https://docs.python.org/2', None),
+}