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 28 29 30
|
From ebdb03def66cd90fca30a1653919bd0161c10f7d Mon Sep 17 00:00:00 2001
From: Apollon Oikonomopoulos <apoikos@debian.org>
Date: Fri, 22 Jul 2016 23:48:07 +0300
Subject: sphinx: use local inventory references for intersphinx
Note that we will not be making this conditional: we want the build to
fail if intersphinx was to fetch inventory data from the internet.
Closes: #830550
---
docs/conf.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/docs/conf.py b/docs/conf.py
index d4e4540..b77a05f 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -47,8 +47,10 @@ sys.path.insert(0, os.path.abspath('../'))
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx']
intersphinx_mapping = {
- 'python': ('https://docs.python.org/3.6', None),
- 'elasticsearch': ('http://elasticsearch-py.readthedocs.io/en/5.4.0', None),
+ 'python': ('https://docs.python.org/3.6',
+ '/usr/share/doc/python3-doc/html/objects.inv'),
+ 'elasticsearch': ('http://elasticsearch-py.readthedocs.io/en/5.4.0',
+ '/usr/share/doc/python-elasticsearch-doc/html/objects.inv'),
}
autoclass_content = "both"
|