File: intersphinx_local.diff

package info (click to toggle)
python-pyqtgraph 0.13.7-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,072 kB
  • sloc: python: 54,043; makefile: 127; ansic: 40; sh: 2
file content (26 lines) | stat: -rw-r--r-- 807 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
From: Gianfranco Costamagna <locutusofborg@debian.org>
Description: cherry-pick and adapt patch from sphinx 7.4.7-3

From: Dmitry Shachnev <mitya57@debian.org>
Date: Tue, 2 Jun 2020 12:22:52 +0300
Subject: Use local intersphinx inventory

To prevent Sphinx from downloading https://docs.python.org/3/objects.inv
during build.


diff --git a/doc/source/conf.py b/doc/source/conf.py
index 6d3597d..f82c6be 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -55,8 +55,8 @@ source_suffix = '.rst'
 qt_documentation = "Qt6"
 
 intersphinx_mapping = {
-    'python': ('https://docs.python.org/3', None),
-    'numpy': ('https://numpy.org/doc/stable/', None)
+    'python': ('/usr/share/doc/python3-doc/html', None),
+    'numpy': ('/usr/share/doc/python-numpy/html', None)
 }
 
 nitpick_ignore_regex = [