w3c / wai-wcag-supplemental

Repository to display Design Patterns for People with Cognitive and Learning Disabilities in a WAI website-like template
https://wai-wcag-supplemental.netlify.app/wcag-supplemental/all-supplemental-guidance/
7 stars 16 forks source link

Generate files from Coga Design Guide #10

Closed SteveALee closed 3 years ago

SteveALee commented 3 years ago

First pass at generating pages from the Content Usable Design Guide source

Notes

Open questions

Next Steps

Issues

SteveALee commented 3 years ago

A nice discovery for parsing is https://www.w3.org/Tools/HTML-XML-utils/ (current maintainer is Bert). Installable for debian. Man pages provided. Especially interesting are:

maybe:

eg:

cat about.html | hxselect -c pre[class~="yaml"][class~="remove"] # has leading \n
cat about.html | hxremove h2:first-of-type, pre
SteveALee commented 3 years ago
SteveALee commented 3 years ago

@hidde (CC @michael-n-cooper @nitedog) New improved script and more pages added. Source files can be MD or HTML