-
Notifications
You must be signed in to change notification settings - Fork 332
Creating a PR: Building and previewing documents
You can build the understanding and technique documents locally.
The main spec is done separately (with Respec), this is only for the informative docs.
See https://github.com/w3c/wcag/tree/main/11ty#usage for full instructions on installation and previewing locally.
The short version:
- Install Node.js (preferably v20, the current LTS)
- Run
npm iin the root of the repository - Run
npm startfor a local development server, ornpm run buildto generate all files under_site
As of August 2024, the Ant/XSLT process for building informative documentation has been removed, as there are now features taking advantage of Eleventy that are no longer backwards-compatible.
Pull requests now include automatic Netlify previews. There is now a top-level index page! You will need to navigate through /techniques/ or /understanding/ as appropriate.
If you have an html file in branch that displays as code (and the automatic Netlify preview is not available), one can use https://raw.githack.com to present a rendered version. You will need the branch, path, and filename. The URL you paste into GitHcak will something look like https://github.com/w3c/wcag/blob/MyCoolBranch/techniques/general/G123.html and you will end up with something like https://raw.githack.com/w3c/wcag/MyCoolBranch/techniques/general/G123.html