Skip to content

Commit ee6b1d7

Browse files
Use intersphinx-registry in docs build (#578)
1 parent 48df293 commit ee6b1d7

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

docs/rtd_environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ dependencies:
4141
- types-jinja2 # dev, tests
4242
- sqlalchemy-stubs # dev, tests
4343
- sphinxcontrib-mermaid # dev, tests, docs
44+
- intersphinx-registry # docs
4445
- fides==0.7.4 # dev, tests

docs/source/conf.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
import os
2020
from importlib.metadata import version
2121

22+
from intersphinx_registry import get_intersphinx_mapping
23+
2224
year = dt.datetime.now().year
2325

2426
author = "Janos Gabler"
@@ -88,11 +90,9 @@
8890
"gh": ("https://github.com/optimagic-dev/optimagic/pulls/%s", "#"),
8991
}
9092

91-
intersphinx_mapping = {
92-
"numpy": ("https://docs.scipy.org/doc/numpy", None),
93-
"pandas": ("https://pandas.pydata.org/pandas-docs/stable", None),
94-
"python": ("https://docs.python.org/3.12", None),
95-
}
93+
intersphinx_mapping = get_intersphinx_mapping(
94+
packages={"numpy", "scipy", "pandas", "python"}
95+
)
9696

9797
linkcheck_ignore = [
9898
r"https://tinyurl\.com/*.",

environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dependencies:
3030
- sphinx-design # docs
3131
- sphinx-panels # docs
3232
- sphinxcontrib-bibtex # docs
33+
- intersphinx-registry # docs
3334
- seaborn # dev, tests
3435
- mypy=1.14.1 # dev, tests
3536
- pyyaml # dev, tests

0 commit comments

Comments
 (0)