The blog.
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.
 
 
 
 

32 lines
1.2 KiB

  1. .PHONY: deploy
  2. VNU_RELEASE=20.6.30
  3. VNU_URL=https://github.com/validator/validator/releases/download/$(VNU_RELEASE)/vnu.jar_$(VNU_RELEASE).zip
  4. deploy:
  5. rm -rf deploy
  6. hyde gen
  7. #hyde publish
  8. vnu.jar_$(VNU_RELEASE).zip:
  9. wget $(VNU_URL)
  10. vnu.jar: vnu.jar_$(VNU_RELEASE).zip
  11. unzip -p $< dist/vnu.jar > $@ || (rm "$@"; false)
  12. .PHONY:
  13. validate: vnu.jar
  14. hyde gen
  15. 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
  16. 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
  17. .PHONY: update-tufte-css
  18. update-tufte-css:
  19. git subtree pull -P tufte-css --squash https://github.com/edwardtufte/tufte-css.git gh-pages
  20. cp -Rp tufte-css/{tufte.css,et-book} content/media/css
  21. @echo 'Make sure to git add content/media/css and commit the updates (if any)!'
  22. .PHONY: update-w3-css
  23. update-w3-css:
  24. wget -O content/media/css/w3.css 'https://www.w3schools.com/w3css/4/w3.css'