Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pin guidelines/* content when publishing 2.2 docs to w3.org (#4161)
This applies the same publication-version-pinning logic added in #4007 for 2.1 docs, to 2.2 docs specifically when built for w3.org, so that guideline/SC and definition text included within informative docs matches the published recommendation. Local dev and gh-pages builds continue to run against `guidelines` in the local repository (effectively the Editor's Draft). The build uses the published recommendation whenever `WCAG_VERSION` is specified, so enabling this for w3.org builds only requires adding that environment variable explicitly to the `publish-w3c` script. The changes to `11ty/guidelines.ts` fix cases that were never exhibited in the 2.1 build, but came up when testing building 2.2 against the published recommendation.
- Loading branch information