Skip to content

Commit 6f445be

Browse files
committed
Make the jupyterlite_contents glob recursive.
Since we have shifted to using globs for the contents, we might as well enable the strictly more powerful ** recursive syntax. See https://docs.python.org/3/library/glob.html#glob.glob "If recursive is true, the pattern “**” will match any files and zero or more directories, subdirectories and symbolic links to directories. If the pattern is followed by an os.sep or os.altsep then files will not match."
1 parent 65d951e commit 6f445be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyterlite_sphinx/jupyterlite_sphinx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def jupyterlite_build(app: Sphinx, error):
300300
jupyterlite_contents = [
301301
match
302302
for pattern in jupyterlite_contents
303-
for match in glob.glob(pattern)
303+
for match in glob.glob(pattern, recursive=True)
304304
]
305305
jupyterlite_dir = app.env.config.jupyterlite_dir
306306

0 commit comments

Comments
 (0)