From 1349a5e944be7a81d7f61f8abc4cd9f2c6fc359c Mon Sep 17 00:00:00 2001 From: "Martin K. Scherer" Date: Wed, 25 May 2022 14:19:42 +0200 Subject: [PATCH] [doc] fix scipy intersphinx mapping (again) Also made asdf point to the used version. --- doc/conf.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index fff3fa453..a402d398c 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -269,19 +269,26 @@ def _copy_tut_files(): # html_theme_options = {"logo_only": True} # Intersphinx mappings ----------------------------------------------------- +import asdf as _asdf + +_asdf_version = _asdf.__version__ + +import scipy as _scipy + +_scipy_version = _scipy.__version__ intersphinx_mapping = { "python": ("https://docs.python.org/3/", None), "numpy": ("https://numpy.org/doc/stable", None), "pandas": ("https://pandas.pydata.org/pandas-docs/stable", None), "xarray": ("https://xarray.pydata.org/en/stable", None), - "scipy": ("https://docs.scipy.org/doc/scipy-1.8.0/html-scipyorg/", None), + "scipy": (f"https://docs.scipy.org/doc/scipy-{_scipy_version}/", None), "matplotlib": ("https://matplotlib.org/stable", None), # "dask": ("https://docs.dask.org/en/latest", None), # "numba": ("https://numba.pydata.org/numba-doc/latest", None), "pint": ("https://pint.readthedocs.io/en/stable", None), "jsonschema": ("https://python-jsonschema.readthedocs.io/en/stable/", None), - "asdf": ("https://asdf.readthedocs.io/en/2.9.2/", None), + "asdf": (f"https://asdf.readthedocs.io/en/{_asdf_version}/", None), "networkx": ("https://networkx.org/documentation/stable/", None), "IPython": ("https://ipython.readthedocs.io/en/stable/", None), "k3d": ("https://k3d-jupyter.org/", None),