Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
documentation
Commits
b2dd786f
Commit
b2dd786f
authored
6 years ago
by
ncastejon
Browse files
Options
Downloads
Patches
Plain Diff
Add accessibilite documentation: pa11y for testing
parent
7e75aba8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#1037
failed
6 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
accessibility.md
+41
-0
41 additions, 0 deletions
accessibility.md
with
41 additions
and
0 deletions
accessibility.md
0 → 100644
+
41
−
0
View file @
b2dd786f
# Testing with pa11y
This
[
resource
](
https://bitsofco.de/pa11y/
)
is a good start to create your own testing pipeline.
## Quick and simple overview
```
npm install -g pa11y
```
```
pa11y https://data.beta.grandlyon.com/fr/accueil
```
## Display only critical errors
```
pa11y https://data.beta.grandlyon.com/fr/accueil --ignore "warning;notice"
```
## Using the pa11y-ci
```
npm install -g pa11y-ci
```
Then create a
**.pa11y1**
json file.
```
{
"urls": [
"https://data.beta.grandlyon.com/fr/accueil"
]
}
```
To run the report on multiple URLs:
```
pay11-ci
```
It is also possible to save the report as a json file:
```
pay11-ci --json > report.json
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment