Skip to content

Commit 8b81e48

Browse files
committed
Integrate into publish-w3c scripts; further update to 11ty/README.md
1 parent 2f2e878 commit 8b81e48

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

11ty/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,20 @@ Maintenance tasks (for working with Eleventy config and supporting files used by
2727

2828
- `npm run check` checks for TypeScript errors
2929
- `npm run fmt` formats all TypeScript files
30-
- `npm run changelog` generates data for the Techniques Change Log
30+
31+
## Publishing to WAI website
32+
33+
The following npm scripts can be used to assist with publishing updates to the WAI website:
34+
35+
- `npm run publish-w3c` to publish 2.2
36+
- `npm run publish-w3c:21` to publish 2.1
37+
38+
Each of these scripts performs the following steps:
39+
40+
1. Updates the data used for the Techniques Change Log page
41+
- Note that this step may result in changes to `techniques/changelog.11tydata.json`, which should be committed to `main`
42+
2. Runs the build for the appropriate WCAG version, generating pages and `wcag.json` under `_site`
43+
3. Copies the built files from `_site` to the CVS checkout (see [`WCAG_CVSDIR`](#wcag_cvsdir))
3144

3245
## Environment Variables
3346

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"check": "tsc",
1010
"fmt": "prettier . -w",
1111
"changelog": "tsx 11ty/generate-techniques-changelog-data.ts",
12-
"publish-w3c": "WCAG_VERSION=22 WCAG_JSON=1 WCAG_MODE=publication npm run build && tsx 11ty/cp-cvs.ts",
13-
"publish-w3c:21": "WCAG_VERSION=21 WCAG_JSON=1 WCAG_MODE=publication npm run build && WCAG_VERSION=21 tsx 11ty/cp-cvs.ts",
12+
"publish-w3c": "npm run changelog && WCAG_VERSION=22 WCAG_JSON=1 WCAG_MODE=publication npm run build && tsx 11ty/cp-cvs.ts",
13+
"publish-w3c:21": "npm run changelog && WCAG_VERSION=21 WCAG_JSON=1 WCAG_MODE=publication npm run build && WCAG_VERSION=21 tsx 11ty/cp-cvs.ts",
1414
"start": "tsx watch node_modules/@11ty/eleventy/cmd.cjs --config=eleventy.config.ts --serve --incremental"
1515
},
1616
"author": "W3C",

0 commit comments

Comments
 (0)