Skip to content

Commit 3d6f229

Browse files
authored
Add intersphinx (#184)
1 parent 0183d76 commit 3d6f229

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

doc/conf.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
import sys
23

34
extensions = [
45
'sphinx.ext.autodoc',
@@ -8,7 +9,8 @@
89
'sphinx.ext.mathjax',
910
'numpydoc',
1011
'sphinx_gallery.gen_gallery',
11-
'sphinx.ext.doctest'
12+
'sphinx.ext.doctest',
13+
'sphinx.ext.intersphinx'
1214
]
1315

1416
templates_path = ['_templates']
@@ -39,3 +41,12 @@
3941
# Option to hide doctests comments in the documentation (like # doctest:
4042
# +NORMALIZE_WHITESPACE for instance)
4143
trim_doctest_flags = True
44+
45+
# intersphinx configuration
46+
intersphinx_mapping = {
47+
'python': ('https://docs.python.org/{.major}'.format(
48+
sys.version_info), None),
49+
'numpy': ('https://docs.scipy.org/doc/numpy/', None),
50+
'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
51+
'scikit-learn': ('https://scikit-learn.org/stable/', None)
52+
}

0 commit comments

Comments
 (0)