Skip to content

Commit 250a1a4

Browse files
authored
Merge pull request #64 from amueller/glob_contents
add globbing to content
2 parents 88c3dfd + a293952 commit 250a1a4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/jupyterlite_sphinx.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import shutil
33
import tempfile
44
from warnings import warn
5+
import glob
56

67
from pathlib import Path
78

@@ -265,9 +266,14 @@ def jupyterlite_build(app: Sphinx, error):
265266

266267
if app.builder.format == "html":
267268
print("[jupyterlite-sphinx] Running JupyterLite build")
268-
269269
jupyterlite_config = app.env.config.jupyterlite_config
270270
jupyterlite_contents = app.env.config.jupyterlite_contents
271+
if jupyterlite_contents is not None:
272+
jupyterlite_contents = [
273+
match
274+
for pattern in jupyterlite_contents
275+
for match in glob.glob(pattern)
276+
]
271277
jupyterlite_dir = app.env.config.jupyterlite_dir
272278

273279
config = []

0 commit comments

Comments
 (0)