Skip to content

Commit

Permalink
Update template for trUrl capture; add README sections
Browse files Browse the repository at this point in the history
  • Loading branch information
kfranqueiro committed Dec 17, 2024
1 parent da74239 commit 432ca10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion errata/21.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h3>Editorial Errata</h3>

{%- assign trDate = "2018-06-05" -%}
{%- capture trUrl -%}
https://www.w3.org/TR/{{ trDate | split: "-" | first }}/REC-WCAG21-{{ trDate | replace: "-", "" }}/
https://www.w3.org/TR/{{ trDate | split: "-" | first }}/REC-WCAG{{ page.fileSlug }}-{{ trDate | replace: "-", "" }}/
{%- endcapture -%}
<section id="since-{{ trDate }}">
<h2>Errata since <a href="{{ trUrl }}">{{ trDate | date: "%d %B %Y" }} Publication</a></h2>
Expand Down
6 changes: 5 additions & 1 deletion errata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Errata are listed in reverse-chronological order, first sectioned by publish date,
then within each section based on when each erratum was added.

## Sections

The first top-level section under `<main>` corresponds to the latest version / unpinned URL;
subsequent sections correspond to previous versions / date-stamped URLs.

Expand All @@ -14,7 +16,7 @@ For sections corresponding to previous versions, assignments should follow this
```
{%- assign trDate = "YYYY-MM-DD" -%}
{%- capture trUrl -%}
https://www.w3.org/TR/{{ trDate | split: "-" | first }}/REC-WCAG21-{{ trDate | replace: "-", "" }}/
https://www.w3.org/TR/{{ trDate | split: "-" | first }}/REC-WCAG{{ page.fileSlug }}-{{ trDate | replace: "-", "" }}/
{%- endcapture -%}
```

Expand All @@ -25,6 +27,8 @@ The level 2 heading in the top-level section for each previous version should us
<h2>Errata since <a href="{{ trUrl }}">{{ trDate | date: "%d %B %Y" }} Publication</a></h2>
```

## Erratum format

Each erratum should be in the following format
(replacing `YYYY-MM-DD`, `Section Title`, and `details of what happened`):

Expand Down

0 comments on commit 432ca10

Please sign in to comment.