Skip to content

Commit 6a162f1

Browse files
jessegrabowskifonnesbeck
authored andcommitted
Sort notebook paths by base filename before generating gallery rst
1 parent 4256916 commit 6a162f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxext/thumbnail_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def main(app):
216216
)
217217
)
218218

219-
nb_paths = glob(f"{folder}/*.ipynb")
219+
nb_paths = sorted(glob(f"{folder}/*.ipynb"))
220220
for nb_path in nb_paths:
221221
nbg = NotebookGenerator(nb_path, "..", folder)
222222
nbg.gen_previews()

0 commit comments

Comments
 (0)