summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-10-31 19:17:21 -0400
committerJason R. Coombs <jaraco@jaraco.com>2021-10-31 19:17:21 -0400
commit1473924e53680ac37ae0aa66d863ff39cbc63f3a (patch)
tree96dc9acbb68f9241ab8e140c79fbc347e03f0065 /docs/conf.py
parent930ab79e2fdba0f5f8e54627dbe2b591695fd07f (diff)
parentaae281a9ff6c9a1fa9daad82c79457e8770a1c7e (diff)
downloadpython-setuptools-git-1473924e53680ac37ae0aa66d863ff39cbc63f3a.tar.gz
Merge https://github.com/jaraco/skeleton
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 8f1e1f4c..ba541423 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -76,17 +76,24 @@ link_files = {
# Be strict about any broken references:
nitpicky = True
+# Include Python intersphinx mapping to prevent failures
+# jaraco/skeleton#51
+extensions += ['sphinx.ext.intersphinx']
intersphinx_mapping = {
- 'pypa-build': ('https://pypa-build.readthedocs.io/en/latest/', None)
+ 'python': ('https://docs.python.org/3', None),
}
+intersphinx_mapping.update({
+ 'pypa-build': ('https://pypa-build.readthedocs.io/en/latest/', None)
+})
+
# Add support for linking usernames
github_url = 'https://github.com'
github_sponsors_url = f'{github_url}/sponsors'
extlinks = {
'user': (f'{github_sponsors_url}/%s', '@'), # noqa: WPS323
}
-extensions += ['sphinx.ext.extlinks', 'sphinx.ext.intersphinx']
+extensions += ['sphinx.ext.extlinks']
# Ref: https://github.com/python-attrs/attrs/pull/571/files\
# #diff-85987f48f1258d9ee486e3191495582dR82