File: 002-intersphinx-python-doc.patch

package info (click to toggle)
python-pylatex 1.4.2%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,044 kB
  • sloc: python: 3,810; sh: 209; makefile: 169; xml: 12
file content (24 lines) | stat: -rw-r--r-- 919 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
Description: Use local inventory for Python3.
 Patch for replacing the external URL with local inventory for Python3 in
 intersphinx mapping in doc + Removed mapping for the ones do not have
 local inventory in Debian.
Forwarded: not-needed
Author: Yogeswaran Umasankar <yogu@debian.org>
Last-Update: 2024-08-07

--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -270,10 +270,9 @@ modindex_common_prefix = ["pylatex."]
 todo_include_todos = True
 
 intersphinx_mapping = {
-    "python": ("https://docs.python.org/3", None),
-    "matplotlib": ("http://matplotlib.org/", None),
-    "numpy": ("https://docs.scipy.org/doc/numpy/", None),
-    "quantities": ("https://pythonhosted.org/quantities/", "quantities-inv.txt"),
+    "python": ("/usr/share/doc/python3-doc/html", None),
+    "matplotlib": ("/usr/share/doc/python-matplotlib-doc/html", None),
+    "numpy": ("/usr/share/doc/python-numpy-doc", None),
 }