From: Roland Mas <lolando@debian.org>
Date: Tue, 29 Aug 2023 15:51:34 +0200
Subject: Skip failing example in the gallery

---
 doc/conf.py | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 55 insertions(+), 4 deletions(-)

diff --git a/doc/conf.py b/doc/conf.py
index cee5f4a..6348f9e 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -51,11 +51,62 @@ apidoc_separate_modules = True
 
 # Sphinx Gallery
 # the following files are ignored from gallery processing
-ignore_files = ['plotting/export.py',
-                'gloo/geometry_shader.py',
+ignore_files = [
+                # examples/basics/scene/
+                'stereo.py',
+
+                # examples/basics/visuals/
+                'image_visual.py',
+
+                # examples/demo/gloo/
+                'brain.py',
+                'molecular_viewer.py',
+                'skybox.py',
+
+                # examples/demo/gloo/galaxy/
+                'galaxy.py',
+
+                # examples/demo/plot/
+                'plot.py',
+
+                # examples/demo/scene/
+                'picking.py',
+
+                # examples/gloo/
+                'geometry_shader.py',
+
+                # examples/jupyter/
+                'gloo_molecular_viewer.ipynb',
+
+                # examples/offscreen/
+                'simple_egl.py',
+                'simple_osmesa.py',
+
+                # examples/plotting/
+                'export.py',
+                'volume_plot.py',
+
+                # examples/scene/
+                'clipping_planes.py',
+                'contour.py',
+                'face_picking.py',
+                'flipped_axis.py',
+                'image.py',
+                'image_custom_kernel.py',
+                'instanced_mesh.py',
+                'instanced_mesh_visual.py',
+                'mesh_normals.py',
+                'mesh_shading.py',
+                'mesh_texture.py',
+                'one_cam_two_scenes.py',
+                'one_scene_four_cams.py',
+                'volume.py',
+                'volume_plane.py',
+
+                # examples/scene/realtime_data/
+                'ex03c_data_sources_threaded_events.py',
                 ]
-ignore_pattern_regex = [re.escape(os.sep) + f for f in ignore_files]
-ignore_pattern_regex = "|".join(ignore_pattern_regex)
+ignore_pattern_regex = "|".join([re.escape(f) for f in ignore_files])
 
 sphinx_gallery_conf = {
     'examples_dirs': ['../examples/gloo', '../examples/scene', '../examples/plotting'],
