Skip to content

Commit 67f9264

Browse files
committed
DOC: Restore scipy hyperlinking
1 parent 400d447 commit 67f9264

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

doc/conf.py

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -168,20 +168,25 @@
168168
html_sidebars = {}
169169

170170
# Example configuration for intersphinx: refer to the Python standard library.
171-
# No SciPy mapping here because docs.scipy.org frequently times out during CI,
172-
# and our builds treat warnings as errors.
173-
intersphinx_mapping = get_intersphinx_mapping(
174-
packages={
175-
"matplotlib",
176-
"mne",
177-
"nibabel",
178-
"nilearn",
179-
"numpy",
180-
"pandas",
181-
"python",
182-
}
171+
# When https://github.com/scipy/docs.scipy.org/issues/102 is resolved, we can
172+
# remove the scipy entry below and rely on intersphinx_registry.
173+
intersphinx_mapping = {
174+
"scipy": ("https://scipy.github.io/devdocs/", None),
175+
"mne-gui-addons": ("https://mne.tools/mne-gui-addons", None),
176+
}
177+
intersphinx_mapping.update(
178+
get_intersphinx_mapping(
179+
packages={
180+
"matplotlib",
181+
"mne",
182+
"nibabel",
183+
"nilearn",
184+
"numpy",
185+
"pandas",
186+
"python",
187+
}
188+
)
183189
)
184-
intersphinx_mapping["mne-gui-addons"] = ("https://mne.tools/mne-gui-addons", None)
185190
intersphinx_timeout = 30
186191

187192
sphinx_gallery_conf = {

0 commit comments

Comments
 (0)