Use intersphinx inventory files from other Debian packages.
authorDiane Trout <diane@ghic.org>
Thu, 5 Jan 2023 20:34:52 +0000 (20:34 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Thu, 5 Jan 2023 20:34:52 +0000 (20:34 +0000)
Forwarded: not-needed

Gbp-Pq: Name use-system-inventory

docs/source/conf.py

index 46e3955b0e01ea9d943337f5888dda43218fab4b..da8c64823cce88f74258181a87a476bef141631f 100644 (file)
@@ -392,12 +392,12 @@ nbsphinx_execute = "never"
 # Example configuration for intersphinx: refer to the Python standard library.
 # Example configuration for intersphinx: refer to the Python standard library.
 intersphinx_mapping = {
-    'numpy': ('https://docs.scipy.org/doc/numpy/', None),
-    'python': ('https://docs.python.org/3/', None),
+    'numpy': ('https://docs.scipy.org/doc/numpy/', '/usr/share/doc/python-numpy-doc/html/objects.inv'),
+    'python': ('https://docs.python.org/3/', '/usr/share/doc/python3-doc/html/objects.inv'),
     'pydagogue': ('https://matthew-brett.github.io/pydagogue/', None),
     'matplotlib': ('https://matplotlib.org/', None),
-    'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
-    'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
+    'scipy': ('https://docs.scipy.org/doc/scipy/reference/', '/usr/share/doc/python-scipy-doc/html/objects.inv'),
+    'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', '/usr/share/doc/python-pandas-doc/html/objects.inv'),
 }
 
 plot_basedir = join(dirname(dirname(os.path.abspath(__file__))), 'source')