diff --git a/docs/conf.py b/docs/conf.py index 6e3b2088..06452df3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -67,6 +67,7 @@ "sphinx_autodoc_typehints", "conftabs", "sphinx-jsonschema", + "sphinx_tippy", ] # Add any paths that contain templates here, relative to this directory. @@ -94,6 +95,12 @@ "setuptools": ("https://setuptools.pypa.io/en/latest", None), "hatchling": ("https://hatch.pypa.io/latest", None), } +tippy_rtd_urls = [ + val[0] + for key, val in intersphinx_mapping.items() + # Only works with RTD hosted intersphinx + if key not in ("hatchling", "python") +] nitpick_ignore = [ ("py:class", "setuptools.dist.Distribution"), diff --git a/pyproject.toml b/pyproject.toml index d5cfe2d8..781d70f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,6 +97,7 @@ docs = [ "sphinx-copybutton", "sphinx-inline-tabs", "sphinx-jsonschema", + "sphinx-tippy", ] wheel-free-setuptools = [ 'setuptools>=70.1; python_version>="3.8"',