File tree Expand file tree Collapse file tree 12 files changed +78
-1
lines changed Expand file tree Collapse file tree 12 files changed +78
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : CI | Docs
2
+
3
+ on :
4
+ workflow_call :
5
+ workflow_dispatch :
6
+
7
+ concurrency :
8
+ group : docs-check-${{ github.ref }}
9
+ cancel-in-progress : true
10
+
11
+ jobs :
12
+
13
+ docs-verify :
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 0
22
+
23
+ - name : Setup Node
24
+ uses : actions/setup-node@v4
25
+ with :
26
+ node-version : ' 22'
27
+
28
+ - name : Use cache for root node_modules
29
+ id : cache-root-node_modules
30
+ uses : actions/cache@v4
31
+ with :
32
+ path : node_modules
33
+ key : root-node_modules-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('package-lock.json') }}
34
+
35
+ - name : Install
36
+ if : steps.cache-root-node_modules.outputs.cache-hit != 'true'
37
+ run : |
38
+ npm ci --no-audit --no-fund
39
+
40
+ - name : Download artifacts
41
+ uses : actions/download-artifact@v4
42
+ with :
43
+ path : .tmp
44
+
45
+ - name : Unpack artifacts
46
+ run : find .tmp -name "*.tar" -type f -exec tar -xf {} \;
47
+
48
+ - name : Check docs
49
+ run : npm run docs:check
Original file line number Diff line number Diff line change @@ -153,3 +153,16 @@ jobs:
153
153
steps :
154
154
- name : Done
155
155
run : echo "Done!"
156
+
157
+ docs :
158
+ name : Docs
159
+ needs : [ compile-themes ]
160
+ uses : ./.github/workflows/_docs-check.yml
161
+
162
+ ci-docs :
163
+ name : Status check > Docs
164
+ runs-on : ubuntu-latest
165
+ needs : [ docs ]
166
+ steps :
167
+ - name : Done
168
+ run : echo "Done!"
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ declare -a checks=( \
18
18
' Status check > A11y' \
19
19
' Status check > Integration' \
20
20
' Status check > Unit' \
21
+ ' Status check > Docs' \
21
22
' Status check > HTML spec' \
22
23
)
23
24
Original file line number Diff line number Diff line change 33
33
},
34
34
"docs" : {
35
35
"cache" : true
36
+ },
37
+ "docs:check" : {
38
+ "cache" : false ,
39
+ "executor" : " nx:run-script" ,
40
+ "options" : {
41
+ "script" : " docs:check"
42
+ }
36
43
}
37
44
}
38
45
}
Original file line number Diff line number Diff line change 61
61
"sass" : " nx run-many -t sass" ,
62
62
"sass:dist" : " nx run-many -t sass:dist" ,
63
63
"docs" : " nx run-many -t docs" ,
64
- "docs:check" : " npm run docs -- git diff --exit-code -- docs/ " ,
64
+ "docs:check" : " nx run-many -t docs:check " ,
65
65
"test:render-test-pages" : " node ./scripts/render-test-pages.mjs" ,
66
66
"test:contrast" : " node ./scripts/test-contrast.mjs" ,
67
67
"test:create-screenshots" : " ./build/create-screenshots.sh" ,
Original file line number Diff line number Diff line change 44
44
"sass:watch" : " npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css" ,
45
45
"css:prefix" : " npx postcss --replace ./dist/**/*.css" ,
46
46
"docs" : " node ../../scripts/sassdoc.js" ,
47
+ "docs:check" : " npm run docs && git diff --name-only --exit-code -- docs || (echo 'Docs out of date (bootstrap). Run npm run sass && npm run docs' && exit 1)" ,
47
48
"predocs" : " npm run resolve-variables" ,
48
49
"resolve-variables" : " node ../../scripts/resolve-variables.js" ,
49
50
"nuget-pack" : " jq '.version' package.json | xargs nuget pack package.nuspec -Version" ,
Original file line number Diff line number Diff line change 44
44
"sass:watch" : " npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css" ,
45
45
"css:prefix" : " npx postcss --replace ./dist/**/*.css" ,
46
46
"docs" : " node ../../scripts/sassdoc.js" ,
47
+ "docs:check" : " npm run docs && git diff --name-only --exit-code -- docs || (echo 'Docs out of date (classic).' && exit 1)" ,
47
48
"predocs" : " npm run resolve-variables" ,
48
49
"resolve-variables" : " node ../../scripts/resolve-variables.js" ,
49
50
"nuget-pack" : " jq '.version' package.json | xargs nuget pack package.nuspec -Version" ,
Original file line number Diff line number Diff line change 35
35
"sass:compile:dist" : " npx sass --style=compressed --no-source-map --load-path=../../node_modules ./dist:dist" ,
36
36
"sass:watch" : " npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css" ,
37
37
"docs" : " node ../../scripts/sassdoc.js" ,
38
+ "docs:check" : " npm run docs && git diff --name-only --exit-code -- docs || (echo 'Docs out of date (core).' && exit 1)" ,
38
39
"predocs" : " npm run resolve-variables" ,
39
40
"resolve-variables" : " node ../../scripts/resolve-variables.js" ,
40
41
"nuget-pack" : " jq '.version' package.json | xargs nuget pack package.nuspec -Version" ,
Original file line number Diff line number Diff line change 43
43
"sass:watch" : " npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css" ,
44
44
"css:prefix" : " npx postcss --replace ./dist/**/*.css" ,
45
45
"docs" : " node ../../scripts/sassdoc.js" ,
46
+ "docs:check" : " npm run docs && git diff --name-only --exit-code -- docs || (echo 'Docs out of date (default).' && exit 1)" ,
46
47
"predocs" : " npm run resolve-variables" ,
47
48
"resolve-variables" : " node ../../scripts/resolve-variables.js" ,
48
49
"nuget-pack" : " jq '.version' package.json | xargs nuget pack package.nuspec -Version" ,
Original file line number Diff line number Diff line change 45
45
"sass:watch" : " npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css" ,
46
46
"css:prefix" : " npx postcss --replace ./dist/**/*.css" ,
47
47
"docs" : " node ../../scripts/sassdoc.js" ,
48
+ "docs:check" : " npm run docs && git diff --name-only --exit-code -- docs || (echo 'Docs out of date (fluent).' && exit 1)" ,
48
49
"predocs" : " npm run resolve-variables" ,
49
50
"resolve-variables" : " node ../../scripts/resolve-variables.js" ,
50
51
"nuget-pack" : " jq '.version' package.json | xargs nuget pack package.nuspec -Version" ,
You can’t perform that action at this time.
0 commit comments