-
Notifications
You must be signed in to change notification settings - Fork 256
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
Eleventy build: Support generating WCAG 2.1 docs from main branch #4007
Conversation
✅ Deploy Preview for wcag2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
kfranqueiro marked as non substantive for IPR from ash-nazg. |
I'm fairly sure we didn't include anything 2.2 specific in 2.1 docs without that markup, it was very rare. |
0572cda
to
b5a5efc
Compare
b5a5efc
to
46efadf
Compare
1c010a2
to
6873aef
Compare
d6bfbc5
to
b645c53
Compare
94cc984
to
e1e813e
Compare
1f74470
to
312c92a
Compare
@mbgower - use of color, contrast (minimum), resize text |
Discussed on backlog call 11-1 and review divided up (as above). |
@kfranqueiro, the files for changed understanding docs (for instance use-of-color) are not generally showing up in the Files changed tab's list; however, I have confirmed that modifications to notes and the addition of paragraphs from 2.2 have been incorporated into the 2.1 preview (e.g., where the note or paragraph is missing from the current 2.1 Understanding doc). |
@kfranqueiro while the contrast minimum material has been updated, I assume the double-square bracket references in all 3 versions of this understanding document (2.0, 2.1, 2.2) were intended to be linked references, but did not generate properly. It looks like this is covered by #2535 so just flagging again here. |
Right, the actual source files for informative docs won't change. The difference is this builds 2.1 docs from
Right, this doesn't affect that, and those have been an issue for as long as these docs have existed in their current form; there's a separate PR I opened this Tuesday that addresses as much of that as can currently be addressed with the information available in specref and our local biblio.js. |
@kfranqueiro I am now reviewing understanding/conformance. IMO, for both 2.2 and 2.1, "which includes techniques for providing Conforming Alternate Version" should be lower case, to read:
The rationale is that the definition itself (2 paragraphs earlier) is lower case, so while it is fine to leave the heading link in camel case, the final term should be lc. I'm also trying to understand whether "conforming alternative version" and "conforming alternate version" are accidental differences, or if there are actually two different terms. There are 31 occurrences of the former and 5 of the latter. I'm 90% sure this is supposed to all be the same thing; you'll note that under the title "Understanding Conforming Alternate Versions" both terms are used in the next paragraph, seemingly as synonyms. IMO, these should all be alternative. That means "another option", while alternate implies a vacillation between two options. I just had a look at WCAG 2.2, and its use of the two terms is almost opposite that in the Understanding section: 52 occurrences of "alternative" and 14 of "alternate"; however, there continues to be, within the normative text, use of the term "conforming alternate version" including in a definition. @alastc do we just leave all these conflicts in place in the normative text, or do we try to incorporate this into the CFC? PS When I just checked various files, I seemed to come up with different counts (48, 25). I'm not sure if I was doing a search with match case last time or what |
@kfranqueiro |
@kfranqueiro potentially the same issue in the Technical Definition of "Accessibility Supported" section; however, it is also like this on the 2.2 version, so maybe this is intentional?! IMO, since there is styling showing the WHOLE thing is a quote, the quotation marks in front of note are not correct. |
895e0b1
to
61d83d9
Compare
Also update other docs metadata in understanding.ts to match
This reverts commit 89e7593. After discussion with Daniel who conferred with ACT planning team, the version of act-mapping.json currently on the WCAG-2.1 branch is indeed very out of date and not something to preserve.
9db213b
to
99b3fef
Compare
99b3fef
to
d9bd774
Compare
Background
There has long been interest in re-generating updated versions of the informative docs for WCAG 2.1. Previously, this relied upon a separate
WCAG-2.1
branch, but the ideal outcome is to be able to build directly frommain
, altering/pruning content as appropriate.Changes
This adds more functionality to the Eleventy-based build system to support building content targeting WCAG 2.1 in addition to 2.2, specifically when
WCAG_VERSION=21
is set in environment variables:target-size-enhanced
is output totarget-size
for 2.1refer-to-wcag
) via Liquid expressionsnote
andwcagXY
class on the same elementwcag22
classPreview
Do not use the Netlify preview for this, as it always builds 2.2 docs. (I've done a pass to verify that this PR doesn't visibly affect 2.2 output.)
I have set up a preview of this branch on my fork for the lifetime of this PR:
I have done quick-ish passes over both folders to try to spot and resolve any surprises. The Techniques pages largely only changed with respect to Test Rules (due to updated
act-mapping.json
) or the de-listing of obsolete techniques. I particularly looked over the Understanding pages since those align parallel with the guidelines and seem to have more meaningful updates. It is still possible that I have missed additional cases, e.g. of 2.2-specific wording that isn't properly enclosed in aclass="wcag22"
element. This ideally warrants a thorough review.The following Understanding pages inherit notable changes: (checkboxes included for review tracking purposes)