Skip to content

Commit b7ea2ad

Browse files
committed
Add linkspector hyperlink checker
1 parent 5f46ea3 commit b7ea2ad

File tree

4 files changed

+1052
-30
lines changed

4 files changed

+1052
-30
lines changed

.github/workflows/validate-markdown.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,22 @@ on: [push, pull_request]
1313

1414
jobs:
1515
lint:
16-
1716
runs-on: ubuntu-latest
1817

1918
steps:
20-
21-
- uses: actions/checkout@v5 # checkout repo content
22-
with:
23-
fetch-depth: 0
19+
- uses: actions/checkout@v5 # checkout repo content
20+
with:
21+
fetch-depth: 0
22+
23+
- uses: actions/setup-node@v5 # setup Node.js
24+
with:
25+
node-version: "20.x"
2426

25-
- uses: actions/setup-node@v5 # setup Node.js
26-
with:
27-
node-version: '20.x'
27+
- name: Lint work-in-progress spec
28+
run: npx --yes markdownlint-cli2 --config spec.markdownlint.yaml src/oas.md
2829

29-
- name: Lint work-in-progress spec
30-
run: npx --yes markdownlint-cli2 --config spec.markdownlint.yaml src/oas.md
30+
- name: Check links in work-in-progress spec
31+
run: npx --yes linkspector check -c linkspector-config.yaml
3132

32-
- name: Lint other files
33-
run: npx --yes markdownlint-cli2 *.md
33+
- name: Lint other files
34+
run: npx --yes markdownlint-cli2 *.md

linkspector-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
files:
2+
- src/oas.md
3+
ignorePatterns:
4+
- pattern: 'clientdomain.com'
5+
- pattern: 'example.org'

0 commit comments

Comments
 (0)