There is a bug (closes #12) where large directories could be generated if you ran main.py multiple times. To fix this, and to remove the need to call jupyter-book build mybook/ before calling main.py build mybook/ we have changed to this order of operations:
call jupyter-book clean mybook/ to empty mybook/_build.
build all of the new additions
copy mybook/ to mybook_profile-name/
jupyter-book build mybook_profile-name/
copy mybook_profile-name/_build/html to mybook/_build/html/editions (making that folder if it doesn't already exist)
build the main book with jupyter-book build mybook/
This PR also contains the .pre-commit.yml config file for Git pre-commit checks (also executed as a CI job).
There is a bug (closes #12) where large directories could be generated if you ran main.py multiple times. To fix this, and to remove the need to call
jupyter-book build mybook/
before callingmain.py build mybook/
we have changed to this order of operations:jupyter-book clean mybook/
to emptymybook/_build
.mybook/
tomybook_profile-name/
jupyter-book build mybook_profile-name/
mybook_profile-name/_build/html
tomybook/_build/html/editions
(making that folder if it doesn't already exist)jupyter-book build mybook/
This PR also contains the .pre-commit.yml config file for Git pre-commit checks (also executed as a CI job).