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-03-19

--- python-elasticsearch-8.17.2.orig/docs/sphinx/conf.py
+++ python-elasticsearch-8.17.2/docs/sphinx/conf.py
@@ -80,9 +80,10 @@ html_static_path = ["_static"]
 html_css_files = ["css/custom.css"]

 intersphinx_mapping = {
-    "python": ("https://docs.python.org/3", None),
+    "python": ("https://docs.python.org/3", 
+               "/usr/share/doc/python3-doc/html/objects.inv"),
     "elastic-transport": (
         "https://elastic-transport-python.readthedocs.io/en/latest",
-        None,
+        "/usr/share/doc/python-elastic-transport-doc/html/objects.inv",
     ),
 }
