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