From c1628686347ea42179a1b4196d9f08901c373c2d 2024-12-02 19:31:55 From: M Bussonnier Date: 2024-12-02 19:31:55 Subject: [PATCH] Fix compatibility with the latest Sphinx 8 (#14596) Resolves: https://github.com/ipython/ipython/issues/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`. --- diff --git a/docs/source/conf.py b/docs/source/conf.py index d5892ca..b5a053d 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -118,7 +118,7 @@ except ModuleNotFoundError: intersphinx_mapping = config["intersphinx_mapping"] for k, v in intersphinx_mapping.items(): intersphinx_mapping[k] = tuple( - [intersphinx_mapping[k]["url"], intersphinx_mapping[k]["fallback"]] + [intersphinx_mapping[k]["url"], intersphinx_mapping[k]["fallback"] or None] )