Skip to content

Commit 8d1f58e

Browse files
committed
Guess what. I'm updating the regex once again
1 parent 06d35a6 commit 8d1f58e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

docs/sphinx/source/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,15 +384,14 @@ def setup(app):
384384
suppress_warnings = ['ref.footnote']
385385

386386
# settings for sphinx-gallery
387-
sep = os.path.sep
388387
sphinx_gallery_conf = {
389388
'examples_dirs': ['../../examples'], # location of gallery scripts
390389
'gallery_dirs': ['gallery'], # location of generated output
391390

392391
# do not execute gallery examples that begin with NX_
393392
# os.path.sep in negative lookahead ensures exclusive match of filename
394393
# https://sphinx-gallery.github.io/stable/configuration.html#parsing-and-executing-examples-via-matching-patterns # noqa: E501
395-
'filename_pattern': rf"^(?!{sep}.*?{sep})((?!{sep}NX_).)*$",
394+
'filename_pattern': rf"^(?!.*{os.path.sep})*((?!{os.path.sep}NX_).)*$",
396395

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

0 commit comments

Comments
 (0)