File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1414
1515import numpydoc
1616
17+ from intersphinx_registry import get_intersphinx_mapping
18+
1719# for example.py
1820sys .path .insert (0 , os .path .abspath ("." ))
1921# project root
137139# -- Intersphinx setup ----------------------------------------------------
138140
139141# 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 = [
5353 ' matplotlib>=3.5' ,
5454 ' pydata-sphinx-theme>=0.13.3' ,
5555 ' sphinx>=7' ,
56+ ' intersphinx_registry' ,
5657]
5758test = [
5859 ' pytest' ,
You can’t perform that action at this time.
0 commit comments