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.
 
 
 
 

36 lines
1.3 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. test:
  14. ls fixtures/* encthenet_plugins.py | entr python -m unittest encthenet_plugins
  15. .PHONY:
  16. validate: vnu.jar
  17. hyde gen
  18. 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
  19. 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
  20. .PHONY: update-tufte-css
  21. update-tufte-css:
  22. git subtree pull -P tufte-css --squash https://github.com/edwardtufte/tufte-css.git gh-pages
  23. cp -Rp tufte-css/{tufte.css,et-book} content/media/css
  24. @echo 'Make sure to git add content/media/css and commit the updates (if any)!'
  25. .PHONY: update-w3-css
  26. update-w3-css:
  27. wget -O content/media/css/w3.css 'https://www.w3schools.com/w3css/4/w3.css'