-
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
Hoverxref still not working on Jupyter Book? #180
Comments
Hi @mscharling! I'm not a user of Jupyter Book. Can you explain to me why it doesn't work? What error gives you or what's the problem you are having? Thanks! |
Sure, I thought it was unnecessary to put in if it was known to be unsupported. But.. I'm mostly interested in the In my _config.yml I have added:
In my Jupyter Book-folder and in the hoverxref-folder I have created conf.py with
I have a glossary.md with
And lastly I then call "[...] When I hover "example" nothing shows and I don't get any errors when building my book. It runs normally and I get the usual |
Shouldn't this config be in the I don't think you have to use a |
Oh, yeah. That is of course a mistake. I have now added
in my "Using default style (tooltip) for unknown typ (term). Define it in hoverxref_role_types." The book is still builded but removes the "example" from |
Misclicked.. 😅 |
This is not an error, just an info message. That's fine. If you want to remove that message, you can specify which tooltip type it should be used for
I'm not sure. This could be a problem on Jupyter Book, maybe? I haven't seen this issue when using Sphinx directly. Also, can you share the repository to your docs, or a basic example of how I can get the same behavior so I can test it by myself? Another option could be to ask in the Jupyter Book issue tracker itself, since I'm not sure this is a problem on hoverxref itself. |
Sure. I've created the repository with some example code here. Thank you for taking your time to investigate this. |
I'm not sure to follow your example code. There is only one file there
Also, this should be a list (see https://sphinx-hoverxref.readthedocs.io/en/latest/configuration.html#confval-hoverxref_roles). So I think you need something like: sphinx:
config:
...
hoverxref_roles:
- term |
The files are in the gh-pages branch. However, I did not recognize that was the builded files. I have uploaded the source files in the main branch now.
I actually already did try that. 😢 |
I found the issue. Steps to reproduce it:
# _config.yml
sphinx:
config:
hoverxref_roles:
- term
hoverxref_role_types:
term: modal
extra_extensions:
- hoverxref.extension
When you open @choldgraf @chrisjsewell do you know where those CSS classes come from? |
Hmmm good question, either bootstrap or it's in the theme css itself. I suspect it's the latter because I'm guessing you tested this extension with bootstrap already. Want to open an issue in the book theme? |
Thanks @choldgraf. I opened executablebooks/sphinx-book-theme#577 @mscharling feel free to subscribe there as well, in case you want to follow up the news about this issue. |
Avoid collisioning with other CSS frameworks/themes/etc. See executablebooks/sphinx-book-theme#577 Closes #180
Avoid collisioning with other CSS frameworks/themes/etc. See executablebooks/sphinx-book-theme#577 Closes #180
Avoid collisioning with other CSS frameworks/themes/etc. See executablebooks/sphinx-book-theme#577 Closes #180
Hi @mscharling! Would you like to try installing sphinx-hoverxref from #205 with your project and let me know if it works as you expected? |
* Prefix all CSS classes with `hxr-` Avoid collisioning with other CSS frameworks/themes/etc. See executablebooks/sphinx-book-theme#577 Closes #180 * Update tests to use the prefix `hxr-` * Refactor code to use CSS prefix variable
Hi @mscharling! I just deployed a new version of this extension: |
Hi @humitos, sorry for the late respons. Lots of time has gone without working on my project... However, nice to see that this is now possible for Jupyter Books. My project is currently not using RTD and from #278 I guess I will have to wait checking whether this works for my project or not. Thank you for your time on this :) |
Hi there,
I'm currently trying to implement sphinx-hoverxref in my Jupyter Book and I can't make it work. I'm aware of the relatively new version of Jupyter Book working with RTD theme and that makes me wonder why it won't work. So, have I missed something or does sphinx-hoverxref not work with Jupyter Book?
The text was updated successfully, but these errors were encountered: