1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 12:52:10 +00:00

Switch accessibility checkers to pnpx

This commit is contained in:
Rohan Kumar 2023-11-10 10:43:09 -08:00
parent 94a15855c9
commit 522e322cf5
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ lint-css: $(CSS_DIR)/*.css
equal-access: equal-access:
cp -r $(OUTPUT_DIR) $(OUTPUT_DIR).eac cp -r $(OUTPUT_DIR) $(OUTPUT_DIR).eac
find $(OUTPUT_DIR).eac -type f -name "*.html" | xargs -n1 sd 'content-visibility:auto;' '' find $(OUTPUT_DIR).eac -type f -name "*.html" | xargs -n1 sd 'content-visibility:auto;' ''
achecker $(OUTPUT_DIR).eac/ pnpm --package accessibility-checker dlx achecker $(OUTPUT_DIR).eac/
rm -rf $(OUTPUT_DIR).eac rm -rf $(OUTPUT_DIR).eac
.PHONY: validate-json .PHONY: validate-json

View file

@ -5,4 +5,4 @@ PATH="scripts/bin:$PATH"
output_dir="$1" output_dir="$1"
shift shift
urls="$(echo "$*" | tr ' ' '\n' | sd '^https?://[^/]*' "file://$PWD/$output_dir" | sd '/$' '/index.html' | tr '\n' ' ')" urls="$(echo "$*" | tr ' ' '\n' | sd '^https?://[^/]*' "file://$PWD/$output_dir" | sd '/$' '/index.html' | tr '\n' ' ')"
axe $urls -b firefox --show-errors pnpm --package @axe-core/cli -s dlx axe $urls -b firefox --show-errors