Skip to content

Commit c104a7a

Browse files
committed
Documentation
1 parent 7b3ff66 commit c104a7a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

docs/configuration.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ These settings are global and have effect on both, tooltips and modal dialogues.
1616

1717
.. confval:: hoverxref_default_types
1818

19-
Description: Style to use by default when for the embedded content when using ``:hoverxref:`` role.
20-
It also affect the style of and ``:ref:``
19+
Description: Style to use by default when hover each type of reference (role).
2120

2221
Default: ``{}``
2322

@@ -53,6 +52,14 @@ These settings are global and have effect on both, tooltips and modal dialogues.
5352

5453
Type: bool
5554

55+
.. confval:: hoverxref_ignore_refs
56+
57+
Description: Ignore to add tooltip on specific references. Useful when using :confval:`hoverxref_auto_ref`
58+
59+
Default: ``['genindex', 'modindex', 'search']``
60+
61+
Type: list
62+
5663
.. confval:: hoverxref_domains
5764

5865
Description: List containing the Sphinx Domain's names where ``hoverxref`` has to be applied.

hoverxref/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def setup(app):
250250
app.add_config_value('hoverxref_sphinxtabs', False, 'env')
251251
app.add_config_value('hoverxref_roles', [], 'env')
252252
app.add_config_value('hoverxref_domains', [], 'env')
253-
app.add_config_value('hoverxref_ignore_refs', ['genindex', 'modindex'], 'env')
253+
app.add_config_value('hoverxref_ignore_refs', ['genindex', 'modindex', 'search'], 'env')
254254
app.add_config_value('hoverxref_default_types', {}, 'env')
255255
app.add_config_value('hoverxref_default_type', 'tooltip', 'env')
256256
app.add_config_value('hoverxref_api_host', 'https://readthedocs.org', 'env')

0 commit comments

Comments
 (0)