|
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 = [ |
| 77 | + "class", "meth", "func", "ref", "term", "obj", "mod", "data" |
| 78 | +] |
| 79 | +hoverxref_role_types = dict.fromkeys(hoverxref_roles, "tooltip") |
| 80 | +hoverxref_domains = ["py"] |
| 81 | +hoverxref_intersphinx = list(intersphinx_mapping.keys()) |
| 82 | + |
64 | 83 | napoleon_use_rtype = False # group rtype on same line together with return |
65 | 84 |
|
66 | 85 | # Add any paths that contain templates here, relative to this directory. |
@@ -357,15 +376,6 @@ def setup(app): |
357 | 376 | # If true, do not generate a @detailmenu in the "Top" node's menu. |
358 | 377 | # texinfo_no_detailmenu = False |
359 | 378 |
|
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 | 379 | ipython_warning_is_error = False |
370 | 380 |
|
371 | 381 | # suppress "WARNING: Footnote [1] is not referenced." messages |
|
0 commit comments