Skip to content

Commit

Permalink
Add 2.1 build script that reuses process from main branch (#4183)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kfranqueiro authored Jan 29, 2025
1 parent 1bc5386 commit 1af357b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build-21.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#! /bin/sh

# Download main branch
curl -Lo wcag.tar.gz https://github.com/w3c/wcag/archive/refs/heads/main.tar.gz
tar xf wcag.tar.gz
cd wcag-main
npm i

# Run build using local 2.1 guidelines from active branch
WCAG_VERSION=21 WCAG_FORCE_LOCAL_GUIDELINES=../guidelines/index.html npm run build

0 comments on commit 1af357b

Please sign in to comment.