Skip to content

Commit 7271870

Browse files
committed
docs: user intersphinx plugin for external doc references
1 parent b97343a commit 7271870

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
'sphinx.ext.viewcode',
4242
'sphinx.ext.doctest',
4343
'myst_parser',
44+
"sphinx.ext.intersphinx",
4445
]
4546

4647
import sphinx_autodoc_typehints
@@ -194,3 +195,13 @@
194195
author, 'openeo', 'One line description of project.',
195196
'Miscellaneous'),
196197
]
198+
199+
200+
# Mapping for external documentation
201+
intersphinx_mapping = {
202+
"python": ("https://docs.python.org/3", None),
203+
"numpy": ("https://numpy.org/doc/stable/", None),
204+
"xarray": ("https://docs.xarray.dev/en/stable/", None),
205+
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
206+
"urllib3": ("https://urllib3.readthedocs.io/en/stable/", None),
207+
}

0 commit comments

Comments
 (0)