Use packaged intersphinx indexes
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Fri, 28 Jan 2022 19:22:53 +0000 (19:22 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Fri, 28 Jan 2022 19:22:53 +0000 (19:22 +0000)
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/876417
Forwarded: not-needed

Gbp-Pq: Name use_system_intersphinx.patch

doc/source/conf.py

index 452ca8fd46baea52c3638315bb24c5fd2faac6cf..84fde3fd3420713bae31ad2a8da9482ea4ff507b 100644 (file)
@@ -430,13 +430,13 @@ latex_documents = [
 if include_api:
     intersphinx_mapping = {
         "dateutil": ("https://dateutil.readthedocs.io/en/latest/", None),
-        "matplotlib": ("https://matplotlib.org/stable/", None),
-        "numpy": ("https://numpy.org/doc/stable/", None),
-        "pandas-gbq": ("https://pandas-gbq.readthedocs.io/en/latest/", None),
-        "py": ("https://pylib.readthedocs.io/en/latest/", None),
-        "python": ("https://docs.python.org/3/", None),
-        "scipy": ("https://docs.scipy.org/doc/scipy/reference/", None),
-        "statsmodels": ("https://www.statsmodels.org/devel/", None),
+        "matplotlib": ("https://matplotlib.org/stable/", "/usr/share/doc/python-matplotlib-doc/html/objects.inv"),
+        "numpy": ("https://numpy.org/doc/stable/", "/usr/share/doc/python-numpy-doc/html/objects.inv"),
+        "pandas-gbq": ("https://pandas-gbq.readthedocs.io/en/latest/", None), # not in Debian
+        "py": ("https://pylib.readthedocs.io/en/latest/", None), # no -doc in Debian
+        "python": ("https://docs.python.org/3/", "/usr/share/doc/python3-doc/html/objects.inv"),
+        "scipy": ("https://docs.scipy.org/doc/scipy/reference/", ("/usr/share/doc/python-scipy-doc/html/objects.inv","/usr/share/doc/python-scipy/html/objects.inv")),
+        "statsmodels": ("https://www.statsmodels.org/devel/", "/usr/share/doc/python-statsmodels-doc/html/objects.inv"),
         "pyarrow": ("https://arrow.apache.org/docs/", None),
     }