File: docs-Use-local-inventory-for-intersphinx.patch

package info (click to toggle)
python-django-debug-toolbar 1%3A5.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,984 kB
  • sloc: python: 6,880; javascript: 631; makefile: 62; sh: 16
file content (27 lines) | stat: -rw-r--r-- 856 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
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Mon, 5 Dec 2022 18:28:34 +0100
Subject: docs: Use local inventory for intersphinx

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

diff --git a/docs/conf.py b/docs/conf.py
index 6e67aac..f9222b5 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -59,11 +59,8 @@ html_theme = "sphinx_rtd_theme"
 # html_static_path = ['_static']
 
 intersphinx_mapping = {
-    "python": ("https://docs.python.org/", None),
-    "django": (
-        "https://docs.djangoproject.com/en/dev/",
-        "https://docs.djangoproject.com/en/dev/_objects/",
-    ),
+    "python": ("/usr/share/doc/python3-doc/html", None),
+    "django": ("/usr/share/doc/python-django-doc/html", None),
 }
 
 # -- Options for Read the Docs -----------------------------------------------