File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1515from pathlib import Path
1616from typing import Any
1717
18+ from intersphinx_registry import get_intersphinx_mapping
19+
1820# If extensions (or modules to document with autodoc) are in another directory,
1921# add these directories to sys.path here. If the directory is relative to the
2022# documentation root, use os.path.abspath to make it absolute, like shown here.
303305
304306
305307# Example configuration for intersphinx: refer to the Python standard library.
306- intersphinx_mapping = {
307- "python" : ("https://docs.python.org/3/" , None ),
308- "ipython" : ("https://ipython.readthedocs.io/en/latest" , None ),
309- "jupyter" : ("https://jupyter.readthedocs.io/en/latest" , None ),
310- }
308+
309+
310+ intersphinx_mapping = get_intersphinx_mapping (packages = {"ipython" , "python" , "jupyter" })
311311
312312
313313def setup (app ):
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ docs = [
5151 " sphinxcontrib_github_alt" ,
5252 " sphinxcontrib-spelling" ,
5353 " sphinx-autodoc-typehints" ,
54+ " intersphinx_registry" ,
5455 " trio"
5556]
5657test = [
You can’t perform that action at this time.
0 commit comments