Closed Iain-S closed 3 years ago
Suggestion from this afternoon (changes to be made in this branch):
jupyter-book clean mybook/
to empty mybook/_build
.List[Dict]
)insert_cards('/path/to/welcome.md', _tocs)
mybook/
to mybook_profile-name/
mybook_profile-name/_toc.yml
mybook_profile-name/_config.yml
jupyter-book build mybook_profile-name/
jupyter-book build mybook/
and mkdir(mybook/_build/html/editions)
mybook_profile-name/_build/html
to mybook/_build/html/editions
mybook_profile-name/
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).