File: docs-Use-inventary-from-packages.patch

package info (click to toggle)
python-validate-pyproject 0.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 916 kB
  • sloc: python: 2,163; makefile: 32; sh: 17
file content (45 lines) | stat: -rw-r--r-- 1,979 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
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Fri, 30 Dec 2022 18:46:02 +0100
Subject: docs: Use inventary from packages

Most of the intersphinx modules can be taken from packages.

There are two exceptions while writing.
For matplotlib is no *-doc package or aquivalent data in the matplotlib
package available.
pyscaffold isn't packaged yet.

Forwarded: Not-Needed
---
 docs/conf.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index c37c2ce..cbfa3d5 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -313,15 +313,15 @@ latex_documents = [
 # -- External mapping --------------------------------------------------------
 python_version = ".".join(map(str, sys.version_info[0:2]))
 intersphinx_mapping = {
-    "sphinx": ("https://www.sphinx-doc.org/en/master", None),
-    "python": ("https://docs.python.org/" + python_version, None),
-    "matplotlib": ("https://matplotlib.org", None),
-    "numpy": ("https://numpy.org/doc/stable", None),
-    "sklearn": ("https://scikit-learn.org/stable", None),
-    "pandas": ("https://pandas.pydata.org/pandas-docs/stable", None),
-    "scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
-    "setuptools": ("https://setuptools.pypa.io/en/stable/", None),
-    "pyscaffold": ("https://pyscaffold.org/en/stable", None),
+    "sphinx": ("/usr/share/doc/sphinx-doc/html/", None),
+    "python": ("/usr/share/doc/python3-doc/html", None),
+#    "matplotlib": ("https://matplotlib.org", None),
+#    "numpy": ("https://numpy.org/doc/stable", None),
+    "sklearn": ("/usr/share/doc/python-sklearn-doc/html", None),
+    "pandas": ("/usr/share/doc/python-pandas-doc/html", None),
+    "scipy": ("/usr/share/doc/python-scipy-doc/html", None),
+    "setuptools": ("/usr/share/doc/python-setuptools-doc/html", None),
+#    "pyscaffold": ("https://pyscaffold.org/en/stable", None),
 }
 extlinks = {
     "issue": (f"{repository}/issues/%s", "issue #%s"),