This repository has been archived on 2024-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-25 23:19:21 +00:00
|
|
|
HOST=driftless
|
|
|
|
DEPLOY=/u/j/u/justhsu/public/html-s/teaching/current/cs839
|
2018-09-10 04:26:26 +00:00
|
|
|
# DEPLOY=rockhopper-07.cs.wisc.edu:/u/j/u/justhsu/public/html-s/teaching/current/cs839
|
2018-08-03 22:09:20 +00:00
|
|
|
# DEPLOY=jackknife:/home/justhsu/html/staging/cs839/
|
2018-12-25 23:19:21 +00:00
|
|
|
ARCHIVE=/u/j/u/justhsu/public/html-s/teaching/f18/cs839
|
|
|
|
|
2018-07-21 20:34:26 +00:00
|
|
|
|
|
|
|
build:
|
2018-09-04 03:43:48 +00:00
|
|
|
make assets && mkdocs build
|
2018-07-21 20:34:26 +00:00
|
|
|
|
|
|
|
preview:
|
2018-09-04 03:43:48 +00:00
|
|
|
make assets && mkdocs serve
|
|
|
|
|
|
|
|
assets:
|
|
|
|
(cd docs/resources/slides; make)
|
2018-07-21 20:34:26 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
pip install mkdocs mkdocs-material pymdown-extensions
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
make build
|
|
|
|
find . -type d -exec chmod a+rx {} \;
|
|
|
|
find . -type f -exec chmod a+r {} \;
|
2018-12-25 23:19:21 +00:00
|
|
|
rsync -avzp --delete -e ssh ./site/ $(HOST):$(DEPLOY)
|
|
|
|
|
|
|
|
archive:
|
|
|
|
make build
|
|
|
|
find . -type d -exec chmod a+rx {} \;
|
|
|
|
find . -type f -exec chmod a+r {} \;
|
|
|
|
ssh $(HOST) mkdir -p $(ARCHIVE)
|
|
|
|
rsync -avzp --delete -e ssh ./site/ $(HOST):$(ARCHIVE)
|