Add 2.1 build script that reuses process from main branch #4183
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes are part 2 of 2 to enable preview builds against the
WCAG-2.1
branch. This part applies to theWCAG-2.1
branch; See #4182 for part 1, which applies tomain
.This adds a shell script which downloads a tarball of the latest
main
branch, extracts it to a subfolder, then runs the Eleventy build within it, instructing it to build against 2.1 but using the localguidelines
folder from the active branch rather than the latest published version.I have temporarily stood up an example site using a version of this branch modified to run against the branch on my fork used for #4182:
https://kgf-wcag21-preview-test.netlify.app/
I have verified that the only diffs between the output of this script and directly running against the latest 2.1 publication from
main
are date stamps in page footers.Here's what the deploy options look like for the netlify site: