Skip to content
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

option to disable or tweak tooltips #286

Closed
mcmtroffaes opened this issue Feb 4, 2022 · 3 comments
Closed

option to disable or tweak tooltips #286

mcmtroffaes opened this issue Feb 4, 2022 · 3 comments
Assignees

Comments

@mcmtroffaes
Copy link
Owner

See #198 (comment)

@mcmtroffaes mcmtroffaes changed the title option to disable tooltips option to disable or tweak tooltips Feb 4, 2022
@Jellby
Copy link

Jellby commented Feb 5, 2022

This is my use case (I'm working on updating this to more up to date versions, but I guess you'll see the point).

Extension to (among other things) render math in titles as MathJax:
https://gitlab.com/Molcas/OpenMolcas/-/blob/master/doc/extensions/molcasbib.py

HTML result:
https://molcas.gitlab.io/OpenMolcas/sphinx/references.html

You'll see some of these titles won't be very nicely rendered in plaintext (e.g. 189). Ideally, the tooltip would use the fully rendered (with MathJax) version, but I assume that's not easy. My preferred solution would be using an alternative citation style for the tooltips only, in this second style I'd disable the titles (and probably use first-name initials and no doi).

@mcmtroffaes mcmtroffaes self-assigned this Feb 8, 2022
mcmtroffaes added a commit that referenced this issue Feb 19, 2022
Custom tooltip styles, allow disabling tooltips (see issue #286).
@mcmtroffaes
Copy link
Owner Author

This is now implemented in develop. Thanks again @Jellby for your useful suggestion!

@Jellby
Copy link

Jellby commented Feb 21, 2022

Looking forward to having it in a release, so I can use it in production code...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants