1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: Stefano Rivera <stefanor@debian.org>
Date: Tue, 5 Mar 2024 17:12:01 -0400
Subject: Intersphinx Paths
Use the Debian packaged documentation for intersphinx links.
Forwarded: not-needed
---
docs/html/conf.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/docs/html/conf.py b/docs/html/conf.py
index 4154d38..03df87e 100644
--- a/docs/html/conf.py
+++ b/docs/html/conf.py
@@ -75,8 +75,10 @@ smartquotes_action = "qe"
# -- Options for intersphinx ----------------------------------------------------------
+pyver = ".".join(str(part) for part in sys.version_info[:2])
intersphinx_mapping = {
- "python": ("https://docs.python.org/3", None),
+ "python": ("https://docs.python.org/3",
+ f"/usr/share/doc/python{pyver}/html/objects.inv"),
"pypug": ("https://packaging.python.org", None),
"packaging": ("https://packaging.pypa.io/en/stable/", None),
}
|