Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 2.1 build script that reuses process from main branch #4183

Open
wants to merge 1 commit into
base: WCAG-2.1
Choose a base branch
from

Conversation

kfranqueiro
Copy link
Contributor

@kfranqueiro kfranqueiro commented Dec 20, 2024

These changes are part 2 of 2 to enable preview builds against the WCAG-2.1 branch. This part applies to the WCAG-2.1 branch; See #4182 for part 1, which applies to main.

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 local guidelines 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:

Netlify deploy configuration for kgf-wcag21-preview-test, including build command set to ./build-21.sh, and publish directory set to wcag-main/_site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant