You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If bundle install encounters an error while installing nokogiri, related to libxml2's config.sub:
Install pkg-config and development files for libxml2 and libxslt (e.g. libxml2-dev and libxslt-dev on Debian or Ubuntu)
Run NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install
Rebuilding CSS and JS
CSS and JS are built via gulp tasks, which are exposed as npm scripts for convenience.
npm run scss will rebuild css/styles.css and css/styles.min.css
npm run js will run lint and rebuild js/script.js
npm run watch will watch for SCSS and JS changes and rebuild when necessary
This can be run in a separate terminal alongside bundle exec jekyll serve --incremental
for development; note that Jekyll will need to run a rebuild pass after gulp)
Updating wcag.json
Run npm run json.
This requires Node.js v20 or higher, for the built-in fetch global.
Data
The data is saved as wcag21.json in the _data directory. Due to the complexity of the WCAG standard, the JSON file format is also quite complex. The data is exported from the WCAG source code and handed over to this repository.
Note: In the past SC text or techniques have been missing from the export. Unfortunately due to the complex nature and different formatting of the export, it was impossible to spot potential gaps in the new files. Usually the public is quick to inform us about missing data.
Generation of the Files to Upload
After checking out/updating this repository and installing Jekyll dependencies, use the following command to generate a new version of “How to Meet WCAG (Quick Reference)”: