[Python-modules-commits] [python-django-extra-views] 09/11: Use local objects.inv where possible.
Michael Fladischer
fladi at moszumanska.debian.org
Thu Mar 16 10:36:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
fladi pushed a commit to branch master
in repository python-django-extra-views.
commit 90a87c9d7729a46c65c9bdd33f25c570a54a83c9
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date: Thu Mar 16 11:17:23 2017 +0100
Use local objects.inv where possible.
---
docs/conf.py | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/docs/conf.py b/docs/conf.py
index 01bf0f0..4dcf10b 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -247,4 +247,20 @@ texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
+def check_object_path(key, url, path):
+ if os.path.isfile(path):
+ return {key: (url, path)}
+ return {}
+
+intersphinx_mapping = {}
+intersphinx_mapping.update(
+ check_object_path(
+ 'python',
+ 'http://docs.python.org/{v}/'.format(
+ v='.'.join(map(str, sys.version_info[:2]))
+ ),
+ '/usr/share/doc/python{v}/html/objects.inv'.format(
+ v='.'.join(map(str, sys.version_info[:2]))
+ )
+ )
+)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django-extra-views.git
More information about the Python-modules-commits
mailing list