Description: Link to packaged docs, not online docs
Date:   Fri Mar 6 22:13:27 2020 -0500
Author: Sandro Tosi <morph@debian.org>
Forwarded: not-needed
Last-Update: 2025-12-02
--- sphinx-gallery.orig/doc/conf.py
+++ sphinx-gallery/doc/conf.py
@@ -17,8 +17,6 @@
 import warnings
 from datetime import date
 
-from intersphinx_registry import get_intersphinx_mapping
-
 import sphinx_gallery
 
 # If extensions (or modules to document with autodoc) are in another directory,
@@ -334,18 +332,15 @@
 
 
 # Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = get_intersphinx_mapping(
-    packages={
-        "joblib",
-        "matplotlib",
-        "numpy",
-        "pandas",
-        "python",
-        "pyvista",
-        "sklearn",
-        "sphinx",
-    },
-)
+intersphinx_mapping = {
+    'joblib': ('/usr/share/doc/python-joblib-doc/html/', None),
+    'matplotlib': ('/usr/share/doc/python-matplotlib-doc/html', None),
+    'numpy': ('/usr/share/doc/python-numpy/html', None),
+    'pandas': ('/usr/share/doc/python-pandas-doc/html', None),
+    'python': ('/usr/share/doc/python3-doc/html', None),
+    'sklearn': ('/usr/share/doc/python-sklearn-doc/html', None),
+    'sphinx': ('/usr/share/doc/sphinx-doc/html', None),
+}
 
 examples_dirs = ["../examples", "../tutorials"]
 gallery_dirs = ["auto_examples", "tutorials"]
