diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2023-04-10 20:26:44 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2023-04-10 20:28:13 -0400 |
| commit | 12e579c5c0bc9e265a5a12d0cd5c7438d4e95cc1 (patch) | |
| tree | cbdd819f25ae6d99c8aac68a8cbaf25ce0e65631 /process-static | |
| parent | 74f3eb18f97dc9a4a964c85d79854d4c598160bd (diff) | |
split up validator.nu validation
There are persistent bugs with handling HTML, CSS and SVG together.
Diffstat (limited to 'process-static')
| -rwxr-xr-x | process-static | 5 |
1 files 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 \ |
