File tree 2 files changed +20
-1
lines changed 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,11 @@ def get_version():
34
34
'sphinx-prompt' ,
35
35
'recommonmark' ,
36
36
'notfound.extension' ,
37
+ 'hoverxref.extension' ,
37
38
'sphinx_search.extension' ,
38
39
]
39
- templates_path = ['_templates' ]
40
40
41
+ templates_path = ['_templates' ]
41
42
source_suffix = ['.rst' , '.md' ]
42
43
43
44
master_doc = 'index'
@@ -85,6 +86,21 @@ def get_version():
85
86
'display_version' : False ,
86
87
}
87
88
89
+ hoverxref_auto_ref = True
90
+ hoverxref_domains = ['py' ]
91
+ hoverxref_roles = [
92
+ 'option' ,
93
+ 'doc' ,
94
+ ]
95
+ hoverxref_role_types = {
96
+ 'mod' : 'modal' , # for Python Sphinx Domain
97
+ 'doc' : 'modal' , # for whole docs
98
+ 'class' : 'tooltip' , # for Python Sphinx Domain
99
+ 'ref' : 'tooltip' , # for hoverxref_auto_ref config
100
+ 'confval' : 'tooltip' , # for custom object
101
+ }
102
+
103
+
88
104
# Activate autosectionlabel plugin
89
105
autosectionlabel_prefix_document = True
90
106
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ git+https://github.com/agjohnson/sphinx-intl.git@7b5c66bdb30f872b3b1286e371f569c
19
19
# Test out in-doc search
20
20
git+https://github.com/readthedocs/readthedocs-sphinx-search@master
21
21
22
+ # Test out hoverxref
23
+ git+https://github.com/readthedocs/sphinx-hoverxref@master
24
+
22
25
23
26
Pygments==2.6.1
24
27
You can’t perform that action at this time.
0 commit comments