diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/example_gallery/main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/example_gallery/main.py b/tools/example_gallery/main.py index b923b24d3..d6ca7b827 100644 --- a/tools/example_gallery/main.py +++ b/tools/example_gallery/main.py @@ -123,6 +123,9 @@ def get_module_gallery(examples): gallery += f"{ind(1)}:img-top: {img_name}\n" gallery += f"{ind(1)}:img-top-cls: + d-flex align-self-center\n\n" + # Fix long names + if name.startswith("chapter"): + name = name.replace("chapter", "c") gallery += f"{ind(1)}`{name} <{url}>`_\n" gallery += f"{ind(1)}+++\n" |