main.py copies bookname/ to make bookname_dsg/, bookname_phd/, etc. If jupyter-book build and main.py build have been run before, this means that everything in bookname/_build is also, unnecessarily, copied and can result (somehow) in many GB of files.
Options
Is there a jupyter-book clean command? If not, can we be more specific about which folders we copy in main.py?
Could we call the first jupyter-book build from main.py, rather than expecting the user to? That way, we can rm bookname/_build before we copy, then run jupyter-book build and then the rest of the usual workflow.
main.py
copiesbookname/
to makebookname_dsg/
,bookname_phd/
, etc. Ifjupyter-book build
andmain.py build
have been run before, this means that everything inbookname/_build
is also, unnecessarily, copied and can result (somehow) in many GB of files.Options
main.py
?jupyter-book build
frommain.py
, rather than expecting the user to? That way, we canrm bookname/_build
before we copy, then runjupyter-book build
and then the rest of the usual workflow.