Skip to content

Commit 34105cd

Browse files
add gh workflow for catching broken links
1 parent 2f5b26f commit 34105cd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check for broken links in docs
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
paths:
7+
- "docs/**"
8+
9+
jobs:
10+
check-links:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Use Node.Js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20.x'
20+
21+
- name: Install Mintlify CLI
22+
run: npm i -g mintlify
23+
24+
- name: Check for broken links
25+
run: mintlify broken-links

0 commit comments

Comments
 (0)