Skip to content

Commit 29fd64a

Browse files
committed
Fix exclusion regex
1 parent d224073 commit 29fd64a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docs/sphinx/source/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,11 @@ def setup(app):
387387
sphinx_gallery_conf = {
388388
'examples_dirs': ['../../examples'], # location of gallery scripts
389389
'gallery_dirs': ['gallery'], # location of generated output
390-
# execute only files starting with plot_
391-
'filename_pattern': r"^(?!NX_).*$",
390+
391+
# do not execute gallery examples that begin with NX_
392+
# https://sphinx-gallery.github.io/stable/configuration.html#parsing-and-executing-examples-via-matching-patterns
393+
# left & center ensure only start of filename as remaining group to match by right operand
394+
'filename_pattern': "^.*" + os.path.sep + "((?!NX_).)*$",
392395

393396
# directory where function/class granular galleries are stored
394397
'backreferences_dir': 'reference/generated/gallery_backreferences',

0 commit comments

Comments
 (0)