aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sources/pyside6/doc/example_no_image.pngbin0 -> 65484 bytes
-rw-r--r--tools/example_gallery/main.py10
2 files changed, 6 insertions, 4 deletions
diff --git a/sources/pyside6/doc/example_no_image.png b/sources/pyside6/doc/example_no_image.png
new file mode 100644
index 000000000..626714074
--- /dev/null
+++ b/sources/pyside6/doc/example_no_image.png
Binary files differ
diff --git a/tools/example_gallery/main.py b/tools/example_gallery/main.py
index 8cc156101..1c37a8670 100644
--- a/tools/example_gallery/main.py
+++ b/tools/example_gallery/main.py
@@ -96,7 +96,7 @@ def get_module_gallery(examples):
gallery = (
".. panels::\n"
f"{ind(1)}:container: container-lg pb-3\n"
- f"{ind(1)}:column: col-lg-3 col-md-3 col-sm-6 col-xs-12 p-2\n\n"
+ f"{ind(1)}:column: col-lg-3 col-md-6 col-sm-6 col-xs-12 p-2\n\n"
)
# Iteration per rows
@@ -116,10 +116,12 @@ def get_module_gallery(examples):
gallery += f"{ind(1)}---\n"
if e["img_doc"]:
- gallery += f"{ind(1)}:img-top: {e['img_doc'].name}\n"
- gallery += f"{ind(1)}:img-top-cls: + d-flex align-self-center\n\n"
+ img_name = e['img_doc'].name
else:
- gallery += "\n"
+ img_name = "../example_no_image.png"
+
+ gallery += f"{ind(1)}:img-top: {img_name}\n"
+ gallery += f"{ind(1)}:img-top-cls: + d-flex align-self-center\n\n"
gallery += f"{ind(1)}`{name} <{url}>`_\n"