blob: 130dc8e7599b99b4a886f0cfbb2fd476c8ff60d0 (
plain)
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
|
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
@@ -1,5 +1,6 @@
import re
import os
+import sys
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx',
'sphinx.ext.coverage']
@@ -15,5 +16,9 @@
autodoc_member_order = 'bysource'
autodoc_default_flags = ['members']
intersphinx_mapping = {
- 'http://docs.python.org/': None,
- 'http://cairographics.org/documentation/pycairo/2/': None}
+ 'http://docs.python.org/':
+ '/usr/share/doc/python' +
+ '.'.join([str(x) for x in sys.version_info[0:2]]) +
+ '/html/objects.inv',
+ 'http://cairographics.org/documentation/pycairo/2/':
+ '/usr/share/doc/python-cairo-dev/html/objects.inv'}
|