File: 0001-doc-conf.py-Fix-intersphinx-mapping-format.patch

package info (click to toggle)
python-ewmh 0.1.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 184 kB
  • sloc: python: 256; makefile: 113
file content (30 lines) | stat: -rw-r--r-- 984 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: Moritz Schlarb <schlarbm@uni-mainz.de>
Date: Mon, 30 Dec 2024 17:29:57 +0100
Subject: doc/conf.py: Fix intersphinx mapping format

Forwarded: https://github.com/parkouss/pyewmh/pull/25
Bug-Debian: #1090141

The legacy format has been deprecated since sphinx 6.2 and is now gone
since sphinx 8.0:
https://github.com/sphinx-doc/sphinx/pull/12083
---
 doc/conf.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/doc/conf.py b/doc/conf.py
index 223b201..6e4164d 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -216,6 +216,9 @@ man_pages = [
      [u'parcouss'], 1)
 ]
 
+# -- Options for intersphinx extension ---------------------------------------
+# https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#configuration
 
-# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
+intersphinx_mapping = {
+    'python': ('https://docs.python.org/3', None),
+}