We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c9c0b7 commit 55ba375Copy full SHA for 55ba375
1 file changed
docs/sphinx/source/conf.py
@@ -389,10 +389,9 @@ def setup(app):
389
'gallery_dirs': ['gallery'], # location of generated output
390
391
# do not execute gallery examples that begin with NX_
392
- # left & center operands ensure only start of filename
393
- # is the remaining group to be matched by right operand
+ # os.path.sep in negative lookahead ensures exclusive match of filename
394
# https://sphinx-gallery.github.io/stable/configuration.html#parsing-and-executing-examples-via-matching-patterns # noqa: E501
395
- 'filename_pattern': "^.*" + os.path.sep + "((?!NX_).)*$",
+ 'filename_pattern': rf"^((?!{os.path.sep}NX_).)*$",
396
397
# directory where function/class granular galleries are stored
398
'backreferences_dir': 'reference/generated/gallery_backreferences',
0 commit comments