Browse Source

add bits to do offline validation... Requires java..

main
John-Mark Gurney 3 years ago
parent
commit
e39301abc6
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      Makefile

+ 14
- 0
Makefile View File

@@ -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


Loading…
Cancel
Save