Compare commits

...

4 Commits
f20 ... master

Author SHA1 Message Date
Justin Hsu
4bfced411c Update archive target. 2023-03-29 23:08:57 -04:00
Justin Hsu
5f882d1b37 Change deploy and archive targets. 2021-01-14 17:02:31 +00:00
Justin Hsu
2c754e62df Update mkdocs. 2021-01-14 14:42:17 +00:00
Justin Hsu
2b06229e39 Add pandoc to install. 2021-01-14 12:25:14 +00:00
2 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,8 @@
HOST=wisc
DEPLOY_HOST=wisc
DEPLOY=/u/j/u/justhsu/public/html-s/teaching/current/cs763
# ARCHIVE=/u/j/u/justhsu/public/html-s/teaching/f20/cs763
ARCHIVE_HOST=jackfruit
ARCHIVE=/var/www/html/teaching/f20/cs763
build:
make assets && mkdocs build
@ -13,16 +15,18 @@ assets:
install:
pip install mkdocs mkdocs-material pymdown-extensions
(cabal new-update && cabal new-install pandoc)
deploy:
make build
find . -type d -exec chmod a+rx {} \;
find . -type f -exec chmod a+r {} \;
rsync -avzp --delete -e ssh ./site/ $(HOST):$(DEPLOY)
# ssh jackknife 'mkdir -p html/staging/cs763'
rsync -avzp --relative $(DEPLOY) -e ssh ./site/ $(DEPLOY_HOST)
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)
ssh $(ARCHIVE_HOST) mkdir -p $(ARCHIVE)
rsync -avzp --delete -e ssh ./site/ $(ARCHIVE_HOST):$(ARCHIVE)

View File

@ -8,7 +8,8 @@ theme:
name: 'material'
language: 'en'
features:
- tabs
- navigation.tabs
- navigation.instant
logo: 'assets/images/favicon.ico'
favicon: 'assets/images/favicon.ico'
palette: