From e39301abc6a6720b3ecf1acd98734556ef6b69de Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Mon, 19 Apr 2021 18:53:49 -0700 Subject: [PATCH] add bits to do offline validation... Requires java.. --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index 69a64f0..46502b0 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,24 @@ .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