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

package info (click to toggle)
elasticsearch-curator 9.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,740 kB
  • sloc: python: 18,836; makefile: 159; sh: 156
file content (30 lines) | stat: -rw-r--r-- 1,356 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
28
29
30
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'),
 }