File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 15
15
from pathlib import Path
16
16
from typing import Any
17
17
18
+ from intersphinx_registry import get_intersphinx_mapping
19
+
18
20
# If extensions (or modules to document with autodoc) are in another directory,
19
21
# add these directories to sys.path here. If the directory is relative to the
20
22
# documentation root, use os.path.abspath to make it absolute, like shown here.
303
305
304
306
305
307
# 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" })
311
311
312
312
313
313
def setup (app ):
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ docs = [
51
51
" sphinxcontrib_github_alt" ,
52
52
" sphinxcontrib-spelling" ,
53
53
" sphinx-autodoc-typehints" ,
54
+ " intersphinx_registry" ,
54
55
" trio"
55
56
]
56
57
test = [
You can’t perform that action at this time.
0 commit comments