File: 0001-sphinx-use-local-inventory-references-for-intersphin.patch

package info (click to toggle)
python-elastic-transport 9.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 640 kB
  • sloc: python: 6,590; makefile: 18
file content (23 lines) | stat: -rw-r--r-- 887 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
Description: sphinx: use local inventory references for intersphinx

Note that we will not be making this conditional: we want the build to
fail if intersphinx was to fetch inventory data from the internet.

Author: Karsten Schöke <karsten.schoeke@geobasis-bb.de>

Forwarded: not-needed
Last-Update: 2025-08-04

--- python-elastic-transport-9.1.0.orig/docs/sphinx/conf.py
+++ python-elastic-transport-9.1.0/docs/sphinx/conf.py
@@ -44,6 +44,8 @@ html_theme = "furo"
 html_static_path = []
 
 intersphinx_mapping = {
-    "python": ("https://docs.python.org/3", None),
-    "requests": ("https://requests.readthedocs.io/en/latest", None),
+    "python": ("https://docs.python.org/3",
+               "/usr/share/doc/python3-doc/html/objects.inv"),
+    "requests": ("https://requests.readthedocs.io/en/latest",
+                 "/usr/share/doc/python-requests-doc/html/objects.inv"),
 }