DOC: Fix thumbnail title for sphinx gallery#25508
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 <quantum.analyst@gmail.com>
jklymak
left a comment
There was a problem hiding this comment.
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
pytestpasses)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.rstornext_api_changes/README.rst