Skip to content

Commit 15c45cb

Browse files
committed
Document regex on different OSes
1 parent a1db1d2 commit 15c45cb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/sphinx/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ def setup(app):
396396
# first group + sep := match folders up to filename
397397
# negative lookahead + match anything but sep := match filename (if valid)
398398
# https://sphinx-gallery.github.io/stable/configuration.html#parsing-and-executing-examples-via-matching-patterns # noqa: E501
399+
# unix: gallery_conf["filename_pattern"] = '^(.*)/(?!NX_)([^/]*)$'
400+
# windows: gallery_conf["filename_pattern"] = '^(.*)\\\\(?!NX_)([^\\\\]*)$'
399401
'filename_pattern': rf"^(.*){os_re_sep}(?!NX_)([^{os_re_sep}]*)$",
400402

401403
# directory where function/class granular galleries are stored

0 commit comments

Comments
 (0)