The repo for building the website at encryptthe.net.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
948 B

  1. .PHONY: env
  2. VNU_RELEASE=20.6.30
  3. VNU_URL=https://github.com/validator/validator/releases/download/$(VNU_RELEASE)/vnu.jar_$(VNU_RELEASE).zip
  4. vnu.jar_$(VNU_RELEASE).zip:
  5. wget $(VNU_URL)
  6. vnu.jar: vnu.jar_$(VNU_RELEASE).zip
  7. unzip -p $< dist/vnu.jar > $@ || (rm "$@"; false)
  8. .PHONY: validate
  9. validate: vnu.jar
  10. hyde gen
  11. java -jar vnu.jar --also-check-css --stdout $$(find deploy -name '*.html' -o -name '*.css') | egrep -v 'Section lacks heading|Article lacks heading|Consider using the “h1” element as a top-level heading only' || true
  12. #java -jar vnu.jar --svg --stdout $$(find deploy -name '*.svg') | egrep -v 'The value of attribute “unicode” on element “glyph” from namespace “http://www.w3.org/2000/svg” is not in Unicode Normalization Form C.' || true
  13. env:
  14. (python3 -m venv p && . ./p/bin/activate && pip install -r requirements.txt)
  15. .PHONY: deploy
  16. deploy:
  17. (. ./p/bin/activate && \
  18. rm -rf deploy && \
  19. hyde gen \
  20. )