Development workflow
Dependencies
In addition to the packages required to run the tutorial (see the install guide for more detail), you will need the following libraries:
npmandnode.jsgitbookmakecp,rm, andzipUnix utilities.
Workflow
The overall structure of the workflow is as follows:
- Develop material on Jupyter notebooks and place them under the
content/folder. When you want to build the website with the new content run on, the root folder:
> make notebooksWhen you want to obtain a new version of the pdf or ebook formats, run on the root folder:
> make bookWhen you want to push a new version to the website to Github Pages, make sure to commit all your changes first on the
masterbranch (assuming your remote is named asorigin):> git add . > git commit -m "commit message" > git push origin masterThen you can run:
> make websiteThis will compile a new version of the website, pdf, eupb and mobi files, check them in, switch to the
gh-pagesbranch, check the new version of the website and push it to Github.