From: Apollon Oikonomopoulos <apoikos@debian.org>
Date: Fri, 22 Jul 2016 23:48:07 +0300
Subject: 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.

Closes: #830550

---
Last-Update: 2025-10-08

--- elasticsearch-curator-9.0.0.orig/docs/conf.py
+++ elasticsearch-curator-9.0.0/docs/conf.py
@@ -71,9 +71,10 @@ if not on_rtd:  # only import and set th
     html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

 intersphinx_mapping = {
-    'python': ('https://docs.python.org/3.13', None),
-    'es_client': ('https://es-client.readthedocs.io/en/v9.0.0', None),
-    'elasticsearch9': ('https://elasticsearch-py.readthedocs.io/en/v9.1.0', None),
-    'voluptuous': ('http://alecthomas.github.io/voluptuous/docs/_build/html', None),
-    'click': ('https://click.palletsprojects.com/en/stable', None),
+    'python': ('https://docs.python.org/3.13',
+               '/usr/share/doc/python3-doc/html/objects.inv'),
+    'elasticsearch9': ('https://elasticsearch-py.readthedocs.io/en/v9.1.0',
+                       '/usr/share/doc/python-elasticsearch-doc/html/objects.inv'),
+    'click': ('https://click.palletsprojects.com/en/stable',
+              '/usr/share/doc/python-click-doc/html/objects.inv'),
 }
