Skip to content

Commit 2416a91

Browse files
authored
Update deps, commit lockfile, override webpackbar as build fix, refactor and update workflow action versions to use lockfile (cncf#350)
1 parent 41ad2f7 commit 2416a91

10 files changed

Lines changed: 20576 additions & 43 deletions

File tree

.cspell.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ words:
2727
- Docsy
2828
- dwelsch
2929
- fluxcd
30+
- github
3031
- keda
3132
- knative
3233
- kedacore
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: npm ci via cached .nvmrc
2+
description: >-
3+
Installs Node from .nvmrc with npm cache enabled and runs npm ci. The job must
4+
run actions/checkout before this action.
5+
6+
runs:
7+
using: composite
8+
steps:
9+
- uses: actions/setup-node@v6
10+
with:
11+
node-version-file: .nvmrc
12+
cache: npm
13+
- name: Install dependencies
14+
run: npm ci
15+
shell: bash

.github/workflows/format-check.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,14 @@ jobs:
88
name: FILE FORMAT
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-node@v4
13-
with:
14-
node-version-file: .nvmrc
15-
cache: npm
16-
cache-dependency-path: package.json
17-
- run: npm install
11+
- uses: actions/checkout@v6
12+
- uses: ./.github/actions/npm-ci-via-cached-nvmrc
1813
- run: npm run check:format
1914

2015
markdown-linter:
2116
name: MARKDOWN linter
2217
runs-on: ubuntu-latest
2318
steps:
24-
- uses: actions/checkout@v4
25-
- uses: actions/setup-node@v4
26-
with:
27-
node-version-file: .nvmrc
28-
cache: npm
29-
cache-dependency-path: package.json
30-
- run: npm install
19+
- uses: actions/checkout@v6
20+
- uses: ./.github/actions/npm-ci-via-cached-nvmrc
3121
- run: npm run check:markdown

.github/workflows/link-check.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ jobs:
88
name: LINK checking
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-node@v4
13-
with:
14-
node-version-file: .nvmrc
15-
cache: npm
16-
cache-dependency-path: package.json
17-
- run: npm install
11+
- uses: actions/checkout@v6
12+
- uses: ./.github/actions/npm-ci-via-cached-nvmrc
1813
- run: npm run check:links

.github/workflows/spell-check.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ jobs:
88
name: SPELLING check
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-node@v4
13-
with:
14-
node-version-file: .nvmrc
15-
cache: npm
16-
cache-dependency-path: package.json
17-
- run: npm install
11+
- uses: actions/checkout@v6
12+
- uses: ./.github/actions/npm-ci-via-cached-nvmrc
1813
- run: npm run check:spelling

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ dist
99

1010
# npm assets
1111
node_modules/
12-
package-lock.json
1312

1413
/tmp

docusaurus.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ const config: Config = {
2626
projectName: 'techdocs',
2727

2828
onBrokenLinks: 'warn', // TODO: 'error' or 'throw' once we've fixed all links
29-
onBrokenMarkdownLinks: 'warn',
29+
30+
markdown: {
31+
hooks: {
32+
onBrokenMarkdownLinks: 'warn',
33+
},
34+
},
3035

3136
trailingSlash: true,
3237

0 commit comments

Comments
 (0)