File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1212import sys
1313from datetime import date
1414
15+ from intersphinx_registry import get_intersphinx_mapping
16+
1517import numpydoc
1618
1719# for example.py
136138
137139# -- Intersphinx setup ----------------------------------------------------
138140
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 = [
5353 ' matplotlib>=3.5' ,
5454 ' pydata-sphinx-theme>=0.13.3' ,
5555 ' sphinx>=7' ,
56+ ' intersphinx_registry' ,
5657]
5758test = [
5859 ' pytest' ,
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ numpy>=1.22
44matplotlib>=3.5
55pydata-sphinx-theme>=0.13.3
66sphinx>=7
7+ intersphinx_registry
You can’t perform that action at this time.
0 commit comments