File: 0004-Use-a-local-copy-of-object.inv-from-doc.python.org.patch

package info (click to toggle)
numpy 1%3A2.3.3%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 85,952 kB
  • sloc: python: 255,477; asm: 232,483; ansic: 212,559; cpp: 157,437; f90: 1,575; sh: 845; fortran: 567; makefile: 427; sed: 139; xml: 109; java: 97; perl: 82; cs: 62; javascript: 53; objc: 33; lex: 13; yacc: 9
file content (44 lines) | stat: -rw-r--r-- 2,422 bytes parent folder | download | duplicates (2)
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: SVN-Git Migration <python-modules-team@lists.alioth.debian.org>
Date: Sun, 11 Oct 2015 10:12:16 -0700
Subject: Use a local copy of object.inv from doc.python.org

This avoids downloading them each time from the internet
---
 doc/source/conf.py | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/doc/source/conf.py b/doc/source/conf.py
index e3146bf..f202baa 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -408,18 +408,18 @@ texinfo_documents = [
 # Intersphinx configuration
 # -----------------------------------------------------------------------------
 intersphinx_mapping = {
-    'neps': ('https://numpy.org/neps', None),
-    'python': ('https://docs.python.org/3', None),
-    'scipy': ('https://docs.scipy.org/doc/scipy', None),
-    'matplotlib': ('https://matplotlib.org/stable', None),
-    'imageio': ('https://imageio.readthedocs.io/en/stable', None),
-    'skimage': ('https://scikit-image.org/docs/stable', None),
-    'pandas': ('https://pandas.pydata.org/pandas-docs/stable', None),
-    'scipy-lecture-notes': ('https://scipy-lectures.org', None),
-    'pytest': ('https://docs.pytest.org/en/stable', None),
-    'numpy-tutorials': ('https://numpy.org/numpy-tutorials', None),
-    'numpydoc': ('https://numpydoc.readthedocs.io/en/latest', None),
-    'dlpack': ('https://dmlc.github.io/dlpack/latest', None)
+    'neps': ('https://numpy.org/neps', '../../debian/intersphinx/neps_objects.inv'),
+    'python': ('/usr/share/doc/python3/html/', None),
+    'scipy': ('/usr/share/doc/python-scipy-doc/html/', None),
+    'matplotlib': ('https://matplotlib.org/stable/', '../../debian/intersphinx/matplotlib_objects.inv'),
+    'imageio': ('/usr/share/doc/python-imageio-doc/html/', None),
+    'skimage': ('/usr/share/doc/python-skimage-doc/html/', None),
+    'pandas': ('/usr/share/doc/python-pandas-doc/html/', None),
+    'scipy-lecture-notes': ('https://scipy-lectures.org', '../../debian/intersphinx/scipy-lectures_objects.inv'),
+    'pytest': ('/usr/share/doc/python-pytest-doc/html/', None),
+    'numpy-tutorials': ('https://numpy.org/numpy-tutorials', '../../debian/intersphinx/numpy-tutorials_objects.inv'),
+    'numpydoc': ('https://numpydoc.readthedocs.io/en/latest', '../../debian/intersphinx/numpydoc_objects.inv'),
+    'dlpack': ('https://dmlc.github.io/dlpack/latest', '../../debian/intersphinx/dlpack_objects.inv')
 }