File tree 3 files changed +7
-6
lines changed 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 12
12
import sys
13
13
from datetime import date
14
14
15
+ from intersphinx_registry import get_intersphinx_mapping
16
+
15
17
import numpydoc
16
18
17
19
# for example.py
136
138
137
139
# -- Intersphinx setup ----------------------------------------------------
138
140
139
- # 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/doc/stable/" , None ),
143
- "sklearn" : ("https://scikit-learn.org/stable/" , None ),
144
- }
141
+ # Example configuration for intersphinx: refer to several Python libraries.
142
+
143
+ intersphinx_mapping = get_intersphinx_mapping (packages = ["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