This repository is no longer used or maintained and is now archived.
A demonstration of the Pa11y accessibility tool, including sample web pages with and without accessibility errors to test with Pa11y.
View at: https://cdlib.github.io/pa11y-sample-project
Requires Node, npm and Font Awesome Pro token
-
Add the Font Awesome Pro token as a GitHub Actions secret named
FONTAWESOME_TOKEN
. -
Add a .npmrc file within the project root using the Per-Project settings for Font Awesome Pro, including your token. This file is automatically ignored by Git and should not be committed.
-
Run
npm install
Run npm run serve
This will watch and compile .pug and /styles/.css files as you work on them.
This project's website will be served locally at http://localhost:1234.
Run npm run build
This will create a finished build of all components and pages to /dist/
This requires GitHub Pages to be configured.
Run npm run publish
to publish a finished build of this project to GitHub Pages.
-
Run
npm run test-pa11y
-
Pa11y-ci test results will be logged to your CLI.
Pa11y-ci will automatically run as part of this GitHub Actions workflow with a code push to any branch within the repository.