File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -387,8 +387,11 @@ def setup(app):
387387sphinx_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' ,
You can’t perform that action at this time.
0 commit comments