summaryrefslogtreecommitdiffstats
path: root/debian/patches/intersphinx_mapping.patch
blob: 6b8fa175b40a00d753d37d79732fe611657ff363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: "P. J. McDermott" <pj@pehjota.net>
Forwarded: not-needed
Subject: Use non-None object inventory values in intersphinx_mapping

--- a/docs/conf.py
+++ b/docs/conf.py
@@ -251,7 +251,12 @@
 
 # Example configuration for intersphinx: refer to the Python standard library.
 intersphinx_mapping = {
-    'python': ('http://docs.python.org/', None),
-    'pycairo': ('http://www.cairographics.org/documentation/pycairo/2/', None),
-    'cairocffi': ('http://pythonhosted.org/cairocffi/', None),
+    'python': ('http://docs.python.org/',
+               '/usr/share/doc/python' +
+               '.'.join([str(x) for x in sys.version_info[0:2]]) +
+               '/html/objects.inv'),
+    'pycairo': ('http://www.cairographics.org/documentation/pycairo/2/',
+                '/usr/share/doc/python-cairo-dev/html/objects.inv'),
+    'cairocffi': ('http://pythonhosted.org/cairocffi/',
+                  '/usr/share/doc/python-cairocffi-doc/html/objects.inv'),
 }