mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-24 01:42:10 +00:00
Switch accessibility checkers to pnpx
This commit is contained in:
parent
94a15855c9
commit
522e322cf5
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -52,7 +52,7 @@ lint-css: $(CSS_DIR)/*.css
|
|||
equal-access:
|
||||
cp -r $(OUTPUT_DIR) $(OUTPUT_DIR).eac
|
||||
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
|
||||
|
||||
.PHONY: validate-json
|
||||
|
|
|
@ -5,4 +5,4 @@ PATH="scripts/bin:$PATH"
|
|||
output_dir="$1"
|
||||
shift
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue