1234567891011121314151617181920212223242526272829303132333435363738 |
- .PHONY: help book clean serve
- help:
- @echo "Please use 'make <target>' where <target> is one of:"
- @echo " install to install the necessary dependencies for jupyter-book to build"
- @echo " book to convert the content/ folder into Jekyll markdown in _build/"
- @echo " clean to clean out site build files"
- @echo " runall to run all notebooks in-place, capturing outputs with the notebook"
- @echo " serve to serve the repository locally with Jekyll"
- @echo " build to build the site HTML and store in _site/"
- @echo " site to build the site HTML, store in _site/, and serve with Jekyll"
- install:
- # Check to see whether bundler is already installed. If not, install it.
- if [ hash bundler 2>/dev/null ]; then \
- gem install bundler;\
- fi
- bundle install
- book:
- jupyter-book build ./
- runall:
- jupyter-book run ./content
- clean:
- python scripts/clean.py
- serve:
- bundle exec guard
- build:
- jupyter-book build ./ --overwrite
- site: build
- bundle exec jekyll build
- touch _site/.nojekyll
|