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.
2 parents e1931d2 + 05681a1 commit f25aad9Copy full SHA for f25aad9
conf.py
@@ -263,8 +263,9 @@ def wrapper(*args, **kwargs):
263
# ignore_pattern also skips parsing.
264
# See https://github.com/sphinx-gallery/sphinx-gallery/issues/721
265
# for a more detailed description of the issue.
266
+ # GALLERY_PATTERN should be a regular expression.
267
sphinx_gallery_conf["ignore_pattern"] = (
- r"/(?!" + re.escape(os.getenv("GALLERY_PATTERN")) + r")[^/]+$"
268
+ r"^(?!.*" + os.getenv("GALLERY_PATTERN") + r")"
269
)
270
271
for i in range(len(sphinx_gallery_conf["examples_dirs"])):
0 commit comments