Skip to content

Commit db1ab3e

Browse files
committed
update Makefile
1 parent 22d8fb0 commit db1ab3e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Makefile

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
.PHONY: help book clean serve binder
1+
.PHONY: help book clean binder runall install site book sync_md all
22

33
help:
4+
@echo ""
5+
@echo "=== USAGE ==="
46
@echo "Please use 'make <target>' where <target> is one of:"
5-
@echo " install to install the necessary dependencies for jupyter-book to build"
7+
@echo " install Instructions for creating the 'csn' environment"
68
@echo " book to convert the content/ folder into book format in _book/"
79
@echo " clean to clean out site build files"
810
@echo " runall to run all notebooks in-place, capturing outputs with the notebook"
911
@echo " sync_md to sync content in ipynb files from md files"
1012
@echo " index create an index file from _config/intro.md"
1113
@echo " site push site in _build/html to gh-pages branch"
1214
@echo " binder update the student branch with all files in _toc.yml, matfiles, imgs, *.py, README.md, and anything in a folder named student"
15+
@echo ""
16+
@echo "*** After updating a chapter, you will want to run 'make book site binder' or 'make all' within the 'csn' environment (identical to the 'case-studies' environment, but contains additional packages required for book upkeep). This will update the html files using the jupyter-book package and the push all updates to the appropriate repo branches on github. The content hosted through Binder is pushed to the 'binder' branch using 'make binder', while the content hosted as a GitHub site is pushed to the 'gh-pages' branch using 'make site'. The purpose of the 'binder' branch is to isolate the book content from the book upkeep so that students using Binder can focus on the content."
17+
@echo "============="
18+
@echo ""
1319

1420
all: clean book site binder
1521

@@ -27,6 +33,9 @@ book:
2733
runall:
2834
jupyter nbconvert --to notebook --execute --inplace -y --ExecutePreprocessor.timeout=-1 *.ipynb
2935

36+
install:
37+
@echo "Run 'conda env create --file _config/csn.yml' to create the 'csn' environment which has all packages for running book content as well as jupyter-book for building the book html."
38+
3039
clean:
3140
rm -rf _build
3241

0 commit comments

Comments
 (0)