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
Copy button on code blocks broken in main page #50
Comments
After some investigation... Looking at the source, this is the element of the copy button itself. It seems the icon is not showing, and instead the alt text is, which :
Note the extra I have no idea yet where that My current hope is there was some bug in some upstream version of libraries, which is fixed now, so this will go away by itself... |
I have tried to move the code block outside the |
Just to be clear: when you build it locally, it works correctly?
I just made a PR with more debugging information (versions of
installed packages)
|
Nope, it does not work locally either. |
Update!
Also |
Reply from ENCCS/intermediate-mpi#42, since I commented on the wrong issue:
|
It seems like yes, but you really would want it to be called index.rst, so that the root would work. I am making another test repository to narrow down the problem (it happens with only sphinx+sphinx-copybotton, so after I narrow down some more, I will report it to sphinx-copybutton while I continue investigating) |
Many thanks for digging! |
I think it is a Sphinx problem. Debugging found here: |
Fixes for Sphinx and sphinx_rtd_theme:
But these require an upstream release to properly fix. Next up, local hackish command to do it. |
My workaround for fixing is this is currently
Let's see if it works for intermediate-mpi before I apply it here. |
It worked! Thanks! |
This is now fixed upstream in both sphinx and sphinx_rtd_theme. sphinx-book-theme is not affected. Other themes may possible need fixing, if they have copied the wrong code. I think this workaround should be maintained for quite a while, though, since things will be slow to update everywhere, and we don't want to strongly tie to any particular versions. Thanks for reporting this! |
- Link to the sphinx-lesson issue as well, in the comment describing the workaround. - Closes: #50 - Review: minimal check
It seems that the copy button is broken (i.e. not rendering correctly), but only for code blocks on the main page:
https://enccs.github.io/intermediate-mpi/#graphical-and-text-conventions
The text was updated successfully, but these errors were encountered: