Skip to content

Commit af0a959

Browse files
committed
Fix create_toc_py not accounting for spaces in paths
1 parent eaa7f96 commit af0a959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/create_toc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
# This script provides a platform-independent way of making the jupyter-book call (used in pyproject.toml)
55
toc_file = Path(__file__).parent / "_toc.yml"
6-
cmd = f"jupyter-book toc from-project docs -e .rst -e .md -e .ipynb >{toc_file}"
6+
cmd = f'jupyter-book toc from-project docs -e .rst -e .md -e .ipynb >"{toc_file}"'
77
print(cmd)
88
os.system(cmd)

0 commit comments

Comments
 (0)