generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from aconstas/feat-accessibilty-testing
Feat accessibilty testing
- Loading branch information
Showing
7 changed files
with
3,218 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Node modules directory | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/"] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.