Skip to content

Commit d5547bc

Browse files
committed
Use 'side' option for tooltipster
1 parent 614aa57 commit d5547bc

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

docs/configuration.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ For more specific use cases, you can customize these configuration options in yo
106106

107107
Type: int
108108

109+
.. confval:: hoverxref_tooltip_side
110+
111+
Default: ``right``
112+
113+
Type: string
114+
109115
.. confval:: hoverxref_tooltip_animation
110116

111117
Default: ``fade``

hoverxref/_static/js/hoverxref.js_t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ $(document).ready(function() {
3131
maxWidth: {{ hoverxref_tooltip_maxwidth }},
3232
animation: '{{ hoverxref_tooltip_animation }}',
3333
animationDuration: {{ hoverxref_tooltip_animation_duration }},
34+
side: '{{ hoverxref_tooltip_side }}',
3435
content: '{{ hoverxref_tooltip_content }}',
3536

3637
functionBefore: function(instance, helper) {

hoverxref/extension.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def setup(app):
221221
app.add_config_value('hoverxref_tooltip_theme', ['tooltipster-shadow', 'tooltipster-shadow-custom'], 'env')
222222
app.add_config_value('hoverxref_tooltip_interactive', True, 'env')
223223
app.add_config_value('hoverxref_tooltip_maxwidth', 450, 'env')
224+
app.add_config_value('hoverxref_tooltip_side', 'right', 'env')
224225
app.add_config_value('hoverxref_tooltip_animation', 'fade', 'env')
225226
app.add_config_value('hoverxref_tooltip_animation_duration', 0, 'env')
226227
app.add_config_value('hoverxref_tooltip_content', 'Loading...', 'env')

0 commit comments

Comments
 (0)