Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8a15ba

Browse files
committed
DOC: Add thumbnails to User Guide Index cards and fix gallery scripts
This addresses the 'no gallery there' feedback by adding thumbnails to the navigation cards in doc/users/index.rst. Also fixes missing thumbnail configuration in mathtext.py and ensures static thumbnail images are included.
1 parent 8407cc5 commit a8a15ba

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

12.1 KB
Loading

doc/_static/mathtext_thumbnail.png

6.43 KB
Loading

doc/users/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Using Matplotlib
1212

1313
.. grid-item-card::
1414
:padding: 2
15+
:img-top: ../_static/anatomy.png
1516

1617
.. toctree::
1718
:maxdepth: 2
@@ -26,6 +27,7 @@ Using Matplotlib
2627

2728
.. grid-item-card::
2829
:padding: 2
30+
:img-top: ../_static/FigureQtAgg.png
2931

3032
.. toctree::
3133
:maxdepth: 2
@@ -73,6 +75,7 @@ Using Matplotlib
7375

7476
.. grid-item-card::
7577
:padding: 2
78+
:img-top: ../_static/annotations_thumbnail.png
7679

7780
.. toctree::
7881
:maxdepth: 2

galleries/users_explain/text/mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
the backslashes do not need to be escaped, Mathtext is often written using raw
1919
strings. For example:
2020
"""
21-
# sphinx_gallery_thumbnail_number = 1
21+
sphinx_gallery_thumbnail_path = '_static/mathtext_thumbnail.png'
2222

2323
import matplotlib.pyplot as plt
2424

0 commit comments

Comments
 (0)