-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pa11y-ci
for accesibility linting
#1046
base: main
Are you sure you want to change the base?
Add pa11y-ci
for accesibility linting
#1046
Conversation
5fc13ed
to
64a60ba
Compare
5de128b
to
6afe97a
Compare
Co-authored-by: François <mockersf@gmail.com>
|
It's working finally! Now to actually solve the accessibility issues—after #1026 is merged since it already solves some of the issues with image height width attributes and alt text. |
There's a chance a lot of the accessibility errors are duplicated, since we use templates. I know there are also a few dead pages with the Zola welcome page. If those can be removed, CI times should decrease. Does |
Yes, it does run Chrome via Puppeteer. There are alternative tools; they're paid / cost money. (Axe by Deque, and AccessLint). The latter can be technically free for personal accounts, but not for our use case afaik. To my knowledge The dead pages should be gotten rid of with ... o, damn, the PR that fixed those things was closed. (#601). I guess I can open up a new one to get rid of the whole improper use of pages for community stuff that plagues us. Some of the issues are being duplicated due to templates, yes. Not sure if there is a good way to solve it. |
Yes, that would be awesome! There's quite a few: I recommend building the website and
Unfortunately I don't think it's something that can be solved. My point was just that some errors may be overly-inflated due to duplicated HTML. |
Next step is to actually add the dummy files meant to represent the generic assets section, examples section, example page, community things, et cetera. Just removing the dependencies now to gauge how fast this will be approximately. |
c4d2831
to
e5aaed0
Compare
Okay, it should now cover all the areas without having to wait for things to be generated. Will fix the actual accessibility issues it catches later, after #1026 is merged, or closed, in the indeterminate future. |
Okay, looking thru the complaints the CI is now officially complaining about the invalid pages. So, uh, I guess this is blocked from merging until that's dealt with. |
851d9ea
to
202afb1
Compare
This reverts commit 1fc2ebe.
This reverts commit 202afb1.
Was supposed to be fixed in bevyengine#970, but it got lost in a confusing merge conflict.
Rust code wasn't in code block so was interpreted as HTML due to angle brackets.
Okay last two issues is getting rid of invalid pages and adding aria labels to the image comparing widget. I'll wait until the shortcode in #710 is merged so that stuff isn't being unnecessarily repeated creating merge conflicts that could be avoided. |
To try and prevent starting jobs when the CI will fail anyway.
@TrialDragon I adopted #710 and shortcodes were merged in #1144 |
This adds a new CI job for
pa11y-ci
in order to automate checking if the site, or PR to the site, satisfies basic accessibility guidelines.Closes #396