File: Use-packaged-docs.patch

package info (click to toggle)
python-xarray 2025.08.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,796 kB
  • sloc: python: 115,416; makefile: 258; sh: 47
file content (51 lines) | stat: -rw-r--r-- 2,612 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
45
46
47
48
49
50
51
From: Ghislain Antony Vaillant <ghisvail@gmail.com>
Date: Sat, 15 Apr 2017 15:33:41 +0100
Subject: Use packaged docs
Last-Updated: 2025-02-02
Forwarded: not-needed

Updated 2025-02-02 to disable use of sphinx html themes

---
 doc/conf.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

--- a/doc/conf.py
+++ b/doc/conf.py
@@ -87,7 +87,7 @@
 # NBSphinx configuration
 nbsphinx_timeout = 600
 nbsphinx_execute = "always"
-nbsphinx_allow_errors = False
+nbsphinx_allow_errors = True
 nbsphinx_requirejs_path = ""
 #  png2x/retina rendering of figues in docs would also need to modify custom.css:
 # https://github.com/spatialaudio/nbsphinx/issues/464#issuecomment-652729126
@@ -326,19 +326,19 @@
 intersphinx_mapping = {
     "cftime": ("https://unidata.github.io/cftime", None),
     "cubed": ("https://cubed-dev.github.io/cubed/", None),
-    "dask": ("https://docs.dask.org/en/latest", None),
+    "dask": ("https://docs.dask.org/en/latest", "/usr/share/doc/python-dask-doc/html/objects.inv"),
     "flox": ("https://flox.readthedocs.io/en/latest/", None),
-    "hypothesis": ("https://hypothesis.readthedocs.io/en/latest/", None),
+    "hypothesis": ("https://hypothesis.readthedocs.io/en/latest/", "/usr/share/doc/python-hypothesis-doc/html/objects.inv",
     "iris": ("https://scitools-iris.readthedocs.io/en/latest", None),
-    "matplotlib": ("https://matplotlib.org/stable/", None),
-    "numba": ("https://numba.readthedocs.io/en/stable/", None),
-    "numpy": ("https://numpy.org/doc/stable", None),
-    "pandas": ("https://pandas.pydata.org/pandas-docs/stable", None),
-    "python": ("https://docs.python.org/3/", None),
+    "pandas": ("https://pandas.pydata.org/pandas-docs/stable", '/usr/share/doc/python-pandas-doc/html/objects.inv'),    
+    "python": ("https://docs.python.org/3/", "/usr/share/doc/python3/html/objects.inv"),
+    "numpy": ("https://numpy.org/doc/stable", '/usr/share/doc/numba-doc/html/objects.inv'),
     "scipy": ("https://docs.scipy.org/doc/scipy", None),
+    "numba": ("https://numba.pydata.org/numba-doc/latest", '/usr/share/doc/numba-doc/html/objects.inv'),
+    "matplotlib": ("https://matplotlib.org/stable/",  "/usr/share/doc/python-matplotlib-doc/html/objects.inv"),
     "sparse": ("https://sparse.pydata.org/en/latest/", None),
     "xarray-tutorial": ("https://tutorial.xarray.dev/", None),
-    "zarr": ("https://zarr.readthedocs.io/en/stable/", None),
+    "zarr": ("https://zarr.readthedocs.io/en/stable/", "/usr/share/doc/python3-zarr/html/objects.inv"),
     "xarray-lmfit": ("https://xarray-lmfit.readthedocs.io/stable", None),
 }