Codebase list flask-babel / 6fb37d5
Drop obsolete intersphinx-mapping.patch: upstream does not use this feature anymore intrigeri 2 years ago
2 changed file(s) with 0 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
+0
-29
debian/patches/intersphinx-mapping.patch less more
0 Description: use local object inventory files for sphinx
1 Author: Sebastian Ramacher <s.ramacher@debian.org>
2 Forwarded: not-needed
3 Last-Update: 2013-03-24
4
5 --- a/docs/conf.py
6 +++ b/docs/conf.py
7 @@ -219,5 +219,19 @@
8 [u'Armin Ronacher'], 1)
9 ]
10
11 -intersphinx_mapping = {'http://docs.python.org/': None,
12 - 'http://flask.pocoo.org/docs/': None}
13 +intersphinx_mapping = {
14 + 'http://docs.python.org/dev': None,
15 + 'http://flask.pocoo.org/docs': None
16 +}
17 +def check_object_path(key, url, path):
18 + if os.path.isfile(path):
19 + return {key: (url, path)}
20 + return {}
21 +
22 +intersphinx_mapping = {}
23 +intersphinx_mapping.update(
24 + check_object_path('python',
25 + 'http://docs.python.org/',
26 + '/usr/share/doc/python%d.%d/html/objects.inv' % \
27 + sys.version_info[:2]))
28 +
0 intersphinx-mapping.patch
10 sphinx-default-theme.patch