-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC: Fix thumbnail title for sphinx gallery #25508
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
Conversation
Sphinx Gallery 0.11.0 left RST formatting characters in the thumbnail titles. This was fixed in version 0.12.2 for most cases by github.com/sphinx-gallery/sphinx-gallery/pull/1005, which doesn't cover default roles. So to restore the previous behavior we need to explicitely a role.
galleries/examples/axes_grid1/demo_colorbar_with_axes_divider.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Elliott Sales de Andrade <[email protected]>
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 don't suppose there is appetite for linking to the main library way of doing these things while we are on this page? Eg https://matplotlib.org/stable/gallery/subplots_axes_and_figures/colorbar_placement.html
@jklymak I didn't look at the content of the example, just the way the title displays in the thumbnail. So I'd prefer not to change the content of the example in this PR. This is mainly because I've never used the |
…508-on-v3.7.1-doc Backport PR #25508 on branch v3.7.1-doc (DOC: Fix thumbnail title for sphinx gallery)
…508-on-v3.7.x Backport PR #25508 on branch v3.7.x (DOC: Fix thumbnail title for sphinx gallery)
PR Summary
Sphinx Gallery 0.11.0 left RST formatting characters in the thumbnail titles. This was fixed in version 0.12.2 for most cases by sphinx-gallery/sphinx-gallery/pull/1005, which doesn't cover default roles. So to restore the previous behavior we need to explicitely specify a role.
Closes #23884.
PR Checklist
Documentation and Tests
pytest
passes)Release Notes
.. versionadded::
directive in the docstring and documented indoc/users/next_whats_new/
.. versionchanged::
directive in the docstring and documented indoc/api/next_api_changes/
next_whats_new/README.rst
ornext_api_changes/README.rst