File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,20 @@ Maintenance tasks (for working with Eleventy config and supporting files used by
27
27
28
28
- ` npm run check ` checks for TypeScript errors
29
29
- ` 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 ) )
31
44
32
45
## Environment Variables
33
46
Original file line number Diff line number Diff line change 9
9
"check" : " tsc" ,
10
10
"fmt" : " prettier . -w" ,
11
11
"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" ,
14
14
"start" : " tsx watch node_modules/@11ty/eleventy/cmd.cjs --config=eleventy.config.ts --serve --incremental"
15
15
},
16
16
"author" : " W3C" ,
You can’t perform that action at this time.
0 commit comments