Skip to content

Commit c162868

Browse files
authored
Fix compatibility with the latest Sphinx 8 (ipython#14596)
Resolves: ipython#14595 The `fallback` value cannot be an empty string in Sphinx 8 and there is no way to store `None` in TOML so it has to be handled in `conf.py`.
2 parents 2a41aa5 + f1b1287 commit c162868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
intersphinx_mapping = config["intersphinx_mapping"]
119119
for k, v in intersphinx_mapping.items():
120120
intersphinx_mapping[k] = tuple(
121-
[intersphinx_mapping[k]["url"], intersphinx_mapping[k]["fallback"]]
121+
[intersphinx_mapping[k]["url"], intersphinx_mapping[k]["fallback"] or None]
122122
)
123123

124124

0 commit comments

Comments
 (0)