]> git.cworth.org Git - notmuch/commitdiff
docs: Update intersphinx_mapping
authorFredrik Lönnegren <fredrik@frelon.se>
Thu, 5 Dec 2024 16:45:50 +0000 (17:45 +0100)
committerDavid Bremner <david@tethera.net>
Sun, 8 Dec 2024 13:07:45 +0000 (09:07 -0400)
Running `make dirhtml` in bindings/python/docs generates the following
error:

```
sphinx-build -b dirhtml -d build/doctrees   source build/dirhtml
Running Sphinx v8.0.2
loading translations [en]... done
making output directory... done
Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`.
ERROR: Invalid value `None` in intersphinx_mapping['https://docs.python.org/']. Expected a two-element tuple or list.
```

This commit updates intersphinx_mapping to follow the latest docs [1]

[1] https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html

Signed-off-by: Fredrik Lönnegren <fredrik@frelon.se>
bindings/python/docs/source/conf.py

index 8b43c5ca3f9f1d019c49bf2ac3146186e14c828a..bd4c8b17d94f7dfbc98b310966e3f9834a9db538 100644 (file)
@@ -206,4 +206,4 @@ latex_documents = [
 
 
 # Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'https://docs.python.org/': None}
+intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}