Skip to content

Commit

Permalink
Merge pull request #6 from aconstas/feat-accessibilty-testing
Browse files Browse the repository at this point in the history
Feat accessibilty testing
  • Loading branch information
aconstas authored May 28, 2024
2 parents 8f179a4 + ffb9322 commit faba82c
Show file tree
Hide file tree
Showing 7 changed files with 3,218 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Node modules directory
node_modules/
24 changes: 24 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Check if the hook should be skipped
if [ "$SKIP_HOOK" = "true" ]; then
exit 0
fi

# Start MkDocs in the background
mkdocs serve --quiet &

# Capture the PID of the MkDocs server
MKDOCS_PID=$!

# Run the accessibility test script
npm run pa11y

# Stop MkDocs server
kill $MKDOCS_PID

# Stage the generated CSV file
git add output/pa11y-results.csv

exit 0
8 changes: 8 additions & 0 deletions .pa11yci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"level": "error",
"defaults": {
"standard": "WCAG2AAA",
"wait": 2000
},
"urls": ["http://localhost:8000/"]
}
1,412 changes: 1,412 additions & 0 deletions output/pa11y-results.csv

Large diffs are not rendered by default.

Loading

0 comments on commit faba82c

Please sign in to comment.