File: docs-Don-t-use-external-intersphinx.patch

package info (click to toggle)
python-flask-marshmallow 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 340 kB
  • sloc: python: 1,110; makefile: 169; sh: 17
file content (41 lines) | stat: -rw-r--r-- 1,582 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
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Sun, 9 Apr 2023 07:57:37 +0200
Subject: docs: Don't use external intersphinx

Use objects.inv information from local installed packages.
The packaging of marshmallow-sqlalchemy doesn't provide a -doc package
yet we could use for referencing to.

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

diff --git a/docs/conf.py b/docs/conf.py
index a7da623..51897fb 100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -6,14 +6,15 @@ sys.path.append(os.path.abspath("_themes"))
 extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx_issues"]
 
 intersphinx_mapping = {
-    "python": ("http://python.readthedocs.io/en/latest/", None),
-    "flask": ("http://flask.pocoo.org/docs/latest/", None),
-    "flask-sqlalchemy": ("http://flask-sqlalchemy.pocoo.org/latest/", None),
-    "marshmallow": ("http://marshmallow.readthedocs.io/en/latest/", None),
-    "marshmallow-sqlalchemy": (
-        "http://marshmallow-sqlalchemy.readthedocs.io/en/latest/",
-        None,
-    ),
+    "python": ("/usr/share/doc/python3-doc/html", None),
+    "flask": ("/usr/share/doc/python-flask-doc/html", None),
+    "flask-sqlalchemy": ("/usr/share/doc/flask-sqlalchemy-doc/html", None),
+    "marshmallow": ("/usr/share/doc/python3-marshmallow/html", None),
+# There is no -doc package yet for marshmallow-sqlalchemy.
+#    "marshmallow-sqlalchemy": (
+#        "http://marshmallow-sqlalchemy.readthedocs.io/en/latest/",
+#        None,
+#    ),
 }
 
 primary_domain = "py"