File: 001_disable_intersphinx

package info (click to toggle)
python-elasticsearch 9.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,728 kB
  • sloc: python: 104,053; makefile: 151; javascript: 75
file content (30 lines) | stat: -rw-r--r-- 1,054 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: =?utf-8?q?Karsten_Sch=C3=B6ke?= <karsten.schoeke@geobasis-bb.de>
Date: Mon, 11 Aug 2025 12:43:47 +0200
Subject: sphinx: use local inventory references for intersphinx

Forwarded: not-needed
Last-Update: 2025-03-19

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.
---
 docs/sphinx/conf.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/sphinx/conf.py b/docs/sphinx/conf.py
index d153793..e3cb15e 100644
--- a/docs/sphinx/conf.py
+++ b/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",
     ),
 }