|
56 | 56 | 'sphinx_gallery.gen_gallery',
|
57 | 57 | 'sphinx_toggleprompt',
|
58 | 58 | 'sphinx_favicon',
|
| 59 | + 'hoverxref.extension', |
59 | 60 | ]
|
60 | 61 |
|
61 | 62 | mathjax3_config = {'chtml': {'displayAlign': 'left',
|
62 | 63 | 'displayIndent': '2em'}}
|
63 | 64 |
|
| 65 | +# Example configuration for intersphinx: refer to the Python standard library. |
| 66 | +intersphinx_mapping = { |
| 67 | + 'python': ('https://docs.python.org/3/', None), |
| 68 | + 'numpy': ('https://numpy.org/doc/stable/', None), |
| 69 | + 'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None), |
| 70 | + 'pandas': ('https://pandas.pydata.org/pandas-docs/stable', None), |
| 71 | + 'matplotlib': ('https://matplotlib.org/stable', None), |
| 72 | +} |
| 73 | + |
| 74 | +# Enable hover tooltips |
| 75 | +hoverxref_auto_ref = True |
| 76 | +hoverxref_roles = ["class", "meth", "func", "ref", "term"] |
| 77 | +hoverxref_role_types = dict.fromkeys(hoverxref_roles, "tooltip") |
| 78 | +hoverxref_domains = ["py"] |
| 79 | +hoverxref_intersphinx = list(intersphinx_mapping.keys()) |
| 80 | + |
64 | 81 | napoleon_use_rtype = False # group rtype on same line together with return
|
65 | 82 |
|
66 | 83 | # Add any paths that contain templates here, relative to this directory.
|
@@ -357,15 +374,6 @@ def setup(app):
|
357 | 374 | # If true, do not generate a @detailmenu in the "Top" node's menu.
|
358 | 375 | # texinfo_no_detailmenu = False
|
359 | 376 |
|
360 |
| -# Example configuration for intersphinx: refer to the Python standard library. |
361 |
| -intersphinx_mapping = { |
362 |
| - 'python': ('https://docs.python.org/3/', None), |
363 |
| - 'numpy': ('https://numpy.org/doc/stable/', None), |
364 |
| - 'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None), |
365 |
| - 'pandas': ('https://pandas.pydata.org/pandas-docs/stable', None), |
366 |
| - 'matplotlib': ('https://matplotlib.org/stable', None), |
367 |
| -} |
368 |
| - |
369 | 377 | ipython_warning_is_error = False
|
370 | 378 |
|
371 | 379 | # suppress "WARNING: Footnote [1] is not referenced." messages
|
|
0 commit comments