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.
 
 
 
 

31 lines
959 B

  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 --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'
  16. .PHONY: update-tufte-css
  17. update-tufte-css:
  18. git subtree pull -P tufte-css --squash https://github.com/edwardtufte/tufte-css.git gh-pages
  19. cp -Rp tufte-css/{tufte.css,et-book} content/media/css
  20. @echo 'Make sure to git add content/media/css and commit the updates (if any)!'
  21. .PHONY: update-w3-css
  22. update-w3-css:
  23. wget -O content/media/css/w3.css 'https://www.w3schools.com/w3css/4/w3.css'