.PHONY: deploy VNU_RELEASE=20.6.30 VNU_URL=https://github.com/validator/validator/releases/download/$(VNU_RELEASE)/vnu.jar_$(VNU_RELEASE).zip deploy: rm -rf deploy hyde gen #hyde publish vnu.jar_$(VNU_RELEASE).zip: wget $(VNU_URL) vnu.jar: vnu.jar_$(VNU_RELEASE).zip unzip -p $< dist/vnu.jar > $@ || (rm "$@"; false) .PHONY: validate: vnu.jar hyde gen java -jar vnu.jar --skip-non-html --also-check-css --also-check-svg --stdout deploy | egrep -v 'Section lacks heading|Article lacks heading|Consider using the “h1” element as a top-level heading only' .PHONY: update-tufte-css update-tufte-css: git subtree pull -P tufte-css --squash https://github.com/edwardtufte/tufte-css.git gh-pages cp -Rp tufte-css/{tufte.css,et-book} content/media/css @echo 'Make sure to git add content/media/css and commit the updates (if any)!' .PHONY: update-w3-css update-w3-css: wget -O content/media/css/w3.css 'https://www.w3schools.com/w3css/4/w3.css'