File: 0001-Only-use-local-files-for-generating-sphinx-doc.patch

package info (click to toggle)
pyepr 0.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,080 kB
  • sloc: python: 2,927; makefile: 240; sh: 13
file content (44 lines) | stat: -rw-r--r-- 1,441 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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.