-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add errata to w3c/wcag repo and cross-reference from informative docs (…
…#4170) This adds the following: - Imports the 2.1 and 2.2 errata pages into this repo - Reorganizes existing 2.1 errata in reverse-chronological order - Adds date stamps for all existing errata I could trace back to a commit - Makes use of variables and Liquid expressions to minimize potential for copy-paste errors between sections - Auto-generates table of contents within `CustomLiquid.ts` to avoid desync when adding versions - Documents patterns/formats for authoring errata in `errata/README.md` (with mention in top-level README) - Adds logic to parse information from errata pages and include relevant errata within Guideline/SC boxes and term definitions within informative docs pages - Errata are only included when building for a specific version (i.e. not the editor's draft, in which case corrections are expected to already be inlined) - Only errata against the latest published version are included in informative docs - Updates `publish-w3c` script to also copy relevant errata file for version being published - Adds links to errata pages in top-level index used for dev server and PR builds
- Loading branch information
1 parent
b034ff5
commit 05fd019
Showing
11 changed files
with
555 additions
and
53 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.md | ||
**/README.md | ||
11ty/ | ||
acknowledgements.html | ||
acknowledgements/ | ||
|
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
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
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
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
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 |
---|---|---|
@@ -1,9 +1,18 @@ | ||
{%- if guideline.type == "SC" -%} | ||
{% sectionbox "success-criterion" "Success Criterion (SC)" -%} | ||
{{ guideline.content }} | ||
{%- endsectionbox %} | ||
{%- elsif guideline.type == "Guideline" -%} | ||
{% sectionbox "guideline" "Guideline" -%} | ||
{{ guideline.content }} | ||
{%- endsectionbox %} | ||
{%- endif -%} | ||
{%- capture section_id -%} | ||
{%- if guideline.type == "SC" -%}success-criterion{%- else -%}guideline{%- endif -%} | ||
{%- endcapture -%} | ||
{%- capture section_title -%} | ||
{%- if guideline.type == "SC" -%}Success Criterion (SC){%- else -%}Guideline{%- endif -%} | ||
{%- endcapture -%} | ||
{% sectionbox section_id section_title -%} | ||
{{ guideline.content }} | ||
{%- if errata[guideline.id] %} | ||
<h3>Errata</h3> | ||
<ul> | ||
{%- for erratum in errata[guideline.id] %} | ||
<li>{{ erratum }}</li> | ||
{%- endfor -%} | ||
</ul> | ||
<p><a href="https://www.w3.org/WAI/WCAG{{ version }}/errata/">View all errata</a></p> | ||
{% endif -%} | ||
{%- endsectionbox %} |
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
Oops, something went wrong.