mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-05 01:12:11 +00:00
d73ee7ebf5
- Make xhtml and html alternates the same (we're polygot), cutting static-compression time in half - Make axe-ff run on local files, reducing some overhead.
8 lines
377 B
Bash
Executable file
8 lines
377 B
Bash
Executable file
#!/bin/sh
|
|
# Runs axe on every page of my sitemap
|
|
# first arg is output directory, after that comes urls from a sitemap. We replace the urls with equivalent local file paths.
|
|
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
|