-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support glossary
/ term
and sphinxcontrib-bibtex
#149
Conversation
95db41a
to
b3a3e65
Compare
b3a3e65
to
a70f2b6
Compare
a70f2b6
to
6b41932
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks simple enough.
|
||
See the :term:`sphinx:environment` definition in the glossary. | ||
|
||
To enable ``hoverxref`` on glossary terms, you need to add ``'term'`` to :confval:`hoverxref_roles`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this enabled by default? I feel like it should be..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to not enable tooltips by default. The extension itself has a :hoverxref:
role where you can manually specify which references you want to show tooltips on.
Besides, it has a simplified way to enable tooltips on all references by using hoverxref_auto_ref = True
in your config file or selectively by role using hoverxref_roles
.
------------------------------------- | ||
|
||
If you want to show a tooltip on `sphinxcontrib-bibtex <https://sphinxcontrib-bibtex.readthedocs.io/en/latest/>`_ cites, | ||
you just need to enable it in :confval:`hoverxref_domains` by adding ``'cite'`` to that list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should standardize where we put this info. It's at the bottom of the previous section, and top here. Probably a subhead like Enable this feature
or similar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a Enable this feature
section may be too big for each of them since the content itself is really small. However, standardizing where to describe how to enable them makes sense to me.
Based on #146
Closes #96