Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. .PHONY: help book clean serve
  2. help:
  3. @echo "Please use 'make <target>' where <target> is one of:"
  4. @echo " install to install the necessary dependencies for jupyter-book to build"
  5. @echo " book to convert the content/ folder into Jekyll markdown in _build/"
  6. @echo " clean to clean out site build files"
  7. @echo " runall to run all notebooks in-place, capturing outputs with the notebook"
  8. @echo " serve to serve the repository locally with Jekyll"
  9. @echo " build to build the site HTML and store in _site/"
  10. @echo " site to build the site HTML, store in _site/, and serve with Jekyll"
  11. install:
  12. # Check to see whether bundler is already installed. If not, install it.
  13. if [ hash bundler 2>/dev/null ]; then \
  14. gem install bundler;\
  15. fi
  16. bundle install
  17. book:
  18. jupyter-book build ./
  19. runall:
  20. jupyter-book run ./content
  21. clean:
  22. python scripts/clean.py
  23. serve:
  24. bundle exec guard
  25. build:
  26. jupyter-book build ./ --overwrite
  27. site: build
  28. bundle exec jekyll build
  29. touch _site/.nojekyll