split up validator.nu validation

There are persistent bugs with handling HTML, CSS and SVG together.
This commit is contained in:
Daniel Micay 2023-04-10 20:26:44 -04:00
parent 74f3eb18f9
commit 12e579c5c0

View File

@ -77,8 +77,9 @@ sed -i "$replace" static-tmp/releases.html
gixy nginx-tmp/nginx.conf
xmllint --noout static-tmp/**/*.html
# check CSS first to work around a validator bug
java -jar node_modules/vnu-jar/build/dist/vnu.jar --errors-only --also-check-css --also-check-svg static-tmp/**/*.css static-tmp/**/!(bimi).@(html|svg)
java -jar node_modules/vnu-jar/build/dist/vnu.jar --errors-only static-tmp/**/*.html
java -jar node_modules/vnu-jar/build/dist/vnu.jar --Werror --css static-tmp/**/*.css
java -jar node_modules/vnu-jar/build/dist/vnu.jar --Werror --svg static-tmp/**/!(bimi).svg
find static-tmp -name '*.html' -exec html-minifier --collapse-whitespace \
--process-scripts "application/ld+json" --collapse-boolean-attributes \
--remove-attribute-quotes --remove-comments --remove-empty-attributes \