Skip to content

Commit

Permalink
d/s/conf.py: move to modern intersphinx_mapping.
Browse files Browse the repository at this point in the history
Since Sphinx 8.0, support for the old intersphinx_mapping format has
been removed.  Attempts to build the documentation result in the
following errors:

	Running Sphinx v8.1.3
	loading translations [en]... done
	making output directory... done
	Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`.
	ERROR: Invalid value `None` in intersphinx_mapping['http://docs.python.org/']. Expected a two-element tuple or list.
	ERROR: Invalid value `None` in intersphinx_mapping['http://docs.scipy.org/doc/numpy']. Expected a two-element tuple or list.

This change migrates intersphinx_mapping to the new format.

This has been initially reported as [Debian bug #1090153].

[Debian bug #1090153]: https://bugs.debian.org/1090153

Signed-off-by: Étienne Mollier <[email protected]>
  • Loading branch information
emollier authored and achilleas-k committed Feb 27, 2025
1 parent 35bfce2 commit 55113ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
html_theme = 'default'

# intersphinx configuration
intersphinx_mapping = {'http://docs.python.org/': None,
'http://docs.scipy.org/doc/numpy': None}
intersphinx_mapping = {'python': ['http://docs.python.org/', None],
'scipy': ['http://docs.scipy.org/doc/numpy', None] }

0 comments on commit 55113ff

Please sign in to comment.