File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import numpydoc
16
16
17
+ from intersphinx_registry import get_intersphinx_mapping
18
+
17
19
# for example.py
18
20
sys .path .insert (0 , os .path .abspath ("." ))
19
21
# project root
137
139
# -- Intersphinx setup ----------------------------------------------------
138
140
139
141
# Example configuration for intersphinx: refer to the Python standard library.
140
- intersphinx_mapping = {
141
- "python" : ("https://docs.python.org/3/" , None ),
142
- "numpy" : ("https://numpy.org/devdocs/" , None ),
143
- "sklearn" : ("https://scikit-learn.org/stable/" , None ),
144
- }
142
+
143
+ intersphinx_mapping = get_intersphinx_mapping (["python" , "numpy" , "sklearn" ])
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ doc = [
53
53
' matplotlib>=3.5' ,
54
54
' pydata-sphinx-theme>=0.13.3' ,
55
55
' sphinx>=7' ,
56
+ ' intersphinx_registry' ,
56
57
]
57
58
test = [
58
59
' pytest' ,
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ numpy>=1.22
4
4
matplotlib>=3.5
5
5
pydata-sphinx-theme>=0.13.3
6
6
sphinx>=7
7
+ intersphinx_registry
You can’t perform that action at this time.
0 commit comments