Skip to content

Commit 66f0331

Browse files
authored
chore: broken-link CI (#222)
1 parent 4bc8c6f commit 66f0331

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Check Broken Links
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'docs/**'
7+
- '.github/workflows/check-broken-links.yml'
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- 'docs/**'
13+
- '.github/workflows/check-broken-links.yml'
14+
workflow_dispatch:
15+
16+
jobs:
17+
check-links:
18+
runs-on: ubuntu-latest
19+
name: Check for broken links in documentation
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: '20'
29+
30+
- name: Install Mintlify CLI
31+
run: npm install -g mintlify
32+
33+
- name: Check for broken links
34+
working-directory: ./docs
35+
run: mintlify broken-links

0 commit comments

Comments
 (0)