| 1 | name: Docs Check |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | paths: |
| 6 | - 'docs2/**' |
| 7 | pull_request: |
| 8 | paths: |
| 9 | - 'docs2/**' |
| 10 | |
| 11 | jobs: |
| 12 | check-broken-links: |
| 13 | runs-on: ubuntu-latest |
| 14 | |
| 15 | steps: |
| 16 | - name: Checkout repository |
| 17 | uses: actions/checkout@v5 |
| 18 | |
| 19 | - name: Setup Node.js |
| 20 | uses: actions/setup-node@v4 |
| 21 | with: |
| 22 | node-version: '18' |
| 23 | cache: 'npm' |
| 24 | cache-dependency-path: docs2/package-lock.json |
| 25 | |
| 26 | - name: Install dependencies |
| 27 | working-directory: ./docs2 |
| 28 | run: npm ci |
| 29 | |
| 30 | - name: Check for broken links |
| 31 | working-directory: ./docs2 |
| 32 | run: npx mintlify broken-links |