alan-turing-institute / bio-Turing-Way

Experimenting with JupyterBooks, Sphinx, and training materials for biomed/life sciences from the Turing Way.
https://the-turing-way-personas.netlify.app/welcome
Other
4 stars 5 forks source link

Huge _build dirs #12

Closed Iain-S closed 2 years ago

Iain-S commented 2 years ago

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

  1. Is there a jupyter-book clean command? If not, can we be more specific about which folders we copy in main.py?
  2. 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.
Iain-S commented 2 years ago

Closed (fixed in #14)