From cfe4a2c7b31385c30ec54a8480862b4ab1e70b57 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Tue, 25 Apr 2023 11:44:11 +0300 Subject: [PATCH] docs: update intersphinx mapping from deprecated variant --- doc/conf.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 05f21269..6e264555 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,5 +1,6 @@ from urllib.request import urlopen + _conf_url = \ "https://raw.githubusercontent.com/inducer/sphinxconfig/main/sphinxconfig.py" with urlopen(_conf_url) as _inf: @@ -15,13 +16,13 @@ release = ver_dic["VERSION_TEXT"] intersphinx_mapping = { - "https://docs.python.org/3/": None, - "https://numpy.org/doc/stable/": None, - "https://documen.tician.de/pyopencl/": None, - "https://documen.tician.de/meshmode/": None, - "https://documen.tician.de/arraycontext/": None, - "https://documen.tician.de/pytential/": None, - } + "arraycontext": ("https://documen.tician.de/arraycontext", None), + "meshmode": ("https://documen.tician.de/meshmode", None), + "numpy": ("https://numpy.org/doc/stable", None), + "pyopencl": ("https://documen.tician.de/pyopencl", None), + "pytential": ("https://documen.tician.de/pytential", None), + "python": ("https://docs.python.org/3", None), +} nitpick_ignore_regex = [ ["py:class", r"numpy._?typing._generic_alias.ScalarType"], @@ -37,4 +38,6 @@ # this needs a setting of the same name across all packages involved, that's # why this name is as global-sounding as it is. import sys + + sys._BUILDING_SPHINX_DOCS = True