Skip to content

Commit 1af357b

Browse files
authored
Add 2.1 build script that reuses process from main branch (#4183)
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.
1 parent 1bc5386 commit 1af357b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build-21.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#! /bin/sh
2+
3+
# Download main branch
4+
curl -Lo wcag.tar.gz https://github.com/w3c/wcag/archive/refs/heads/main.tar.gz
5+
tar xf wcag.tar.gz
6+
cd wcag-main
7+
npm i
8+
9+
# Run build using local 2.1 guidelines from active branch
10+
WCAG_VERSION=21 WCAG_FORCE_LOCAL_GUIDELINES=../guidelines/index.html npm run build

0 commit comments

Comments
 (0)