@@ -100,6 +100,9 @@ def setup_theme(app, exception):
100
100
Add a small custom CSS file for a specific theme and set hoverxref configs
101
101
(if not overwritten by the user) with better defaults for these themes.
102
102
"""
103
+ if app .config .hoverxref_type != 'modal' :
104
+ return
105
+
103
106
css_file = None
104
107
theme = app .config .html_theme
105
108
default , rebuild , types = app .config .values .get ('hoverxref_modal_class' )
@@ -139,9 +142,9 @@ def setup(app):
139
142
app .add_config_value ('hoverxref_sphinxtabs' , False , 'env' )
140
143
app .add_config_value ('hoverxref_roles' , [], 'env' )
141
144
app .add_config_value ('hoverxref_domains' , [], 'env' )
145
+ app .add_config_value ('hoverxref_type' , 'tooltip' , 'env' )
142
146
143
147
# Tooltipster settings
144
- app .add_config_value ('hoverxref_tooltip' , False , 'env' )
145
148
app .add_config_value ('hoverxref_tooltip_api_host' , 'https://readthedocs.org' , 'env' )
146
149
app .add_config_value ('hoverxref_tooltip_theme' , ['tooltipster-shadow' , 'tooltipster-shadow-custom' ], 'env' )
147
150
app .add_config_value ('hoverxref_tooltip_interactive' , True , 'env' )
@@ -153,7 +156,6 @@ def setup(app):
153
156
app .add_config_value ('hoverxref_tooltip_class' , 'rst-content' , 'env' )
154
157
155
158
# MicroModal settings
156
- app .add_config_value ('hoverxref_modal' , False , 'env' )
157
159
app .add_config_value ('hoverxref_modal_hover_delay' , 350 , 'env' )
158
160
app .add_config_value ('hoverxref_modal_class' , 'rst-content' , 'env' )
159
161
app .add_config_value ('hoverxref_modal_onshow_function' , None , 'env' )
0 commit comments