From 12e579c5c0bc9e265a5a12d0cd5c7438d4e95cc1 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 10 Apr 2023 20:26:44 -0400 Subject: [PATCH] split up validator.nu validation There are persistent bugs with handling HTML, CSS and SVG together. --- process-static | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/process-static b/process-static index a8e2e38d..ed3f2642 100755 --- a/process-static +++ b/process-static @@ -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 \