Skip to content

Commit 5d90a52

Browse files
committed
Compatibility with Sphinx8
1 parent d802a47 commit 5d90a52

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

docs/source/conf.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
#
7676
# This is also used if you do content translation via gettext catalogs.
7777
# Usually you set "language" from the command line for these cases.
78-
language = None
78+
language = "en"
7979

8080
# List of patterns, relative to source directory, that match files and
8181
# directories to ignore when looking for source files.
@@ -176,5 +176,14 @@
176176

177177
# -- Options for intersphinx extension ---------------------------------------
178178

179-
# Example configuration for intersphinx: refer to the Python standard library.
180-
intersphinx_mapping = {'https://docs.python.org/': None}
179+
intersphinx_cache_limit = 14 # cache for 2 weeks
180+
intersphinx_timeout = 3 # 3 seconds timeout
181+
182+
# Refer to the Python standard library.
183+
intersphinx_mapping = {
184+
"python": ("https://docs.python.org/3.10/", None),
185+
}
186+
187+
# Intersphinx: Do not try to resolve unresolved labels that aren't explicitly prefixed.
188+
# https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#confval-intersphinx_disabled_reftypes
189+
intersphinx_disabled_reftypes = ["*"]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
git+https://github.com/davidfischer/python-abp
33

44
# Needed to build the docs
5-
Sphinx
5+
Sphinx >= 8.0, <9
66
sphinx_rtd_theme

0 commit comments

Comments
 (0)