From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sat, 26 Oct 2013 08:30:36 +0000
Subject: Only use local files for generating sphinx doc.

Set the "intersphinx_mapping" parameter in the doc/conf.py to
point to local object.inv files.
This makes the package self contained and no download attempt
happens any longer (Closes: #726859).
---
 doc/conf.py | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/doc/conf.py b/doc/conf.py
index 84d729f..148502f 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -139,10 +139,10 @@ html_sidebars = {
         'relations.html',
         'sourcelink.html',
         'searchbox.html',
-        'ohloh.html',
-        'pypi.html',
-        'travis-ci.html',
-        'appveyor.html',
+        # 'ohloh.html',
+        # 'pypi.html',
+        # 'travis-ci.html',
+        # 'appveyor.html',
     ],
 }
 
@@ -249,8 +249,10 @@ extlinks = {
 
 # Example configuration for intersphinx: refer to the Python standard library.
 intersphinx_mapping = {
-    'python': ('https://docs.python.org/3', None),
-    'numpy':  ('https://docs.scipy.org/doc/numpy', None),
+    'python': ('https://docs.python.org/3',
+               '/usr/share/doc/python3-doc/html/objects.inv'),
+    'numpy':  ('https://docs.scipy.org/doc/numpy',
+               '/usr/share/doc/python-numpy-doc/html/objects.inv'),
 }
 
 # If true, `todo` and `todoList` produce output, else they produce nothing.
