Skip to content

Commit f4275b8

Browse files
committed
enable tooltip for multiple roles
1 parent 6b59eb0 commit f4275b8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/sphinx/source/conf.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,14 @@
6262
mathjax3_config = {'chtml': {'displayAlign': 'left',
6363
'displayIndent': '2em'}}
6464

65-
# # Enable hover tooltips for glossary terms
66-
# hoverxref_roles = [
67-
# 'term',
68-
# ]
69-
hoverxref_auto_ref = True # enable hoverxref for all roles
65+
# Enable hover tooltips
66+
hoverxref_roles = [
67+
'term',
68+
'ref',
69+
'func',
70+
'class',
71+
'meth',
72+
]
7073

7174
napoleon_use_rtype = False # group rtype on same line together with return
7275

0 commit comments

Comments
 (0)