From 293de08643d63c7e627cb73f4b3f4aa1d2ef9937 Mon Sep 17 00:00:00 2001 From: Tianzhou Date: Fri, 26 Dec 2025 22:08:19 -0800 Subject: [PATCH] chore: broken-link CI --- .github/workflows/check-broken-links.yml | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/check-broken-links.yml diff --git a/.github/workflows/check-broken-links.yml b/.github/workflows/check-broken-links.yml new file mode 100644 index 0000000..cd1faef --- /dev/null +++ b/.github/workflows/check-broken-links.yml @@ -0,0 +1,35 @@ +name: Check Broken Links + +on: + pull_request: + paths: + - 'docs/**' + - '.github/workflows/check-broken-links.yml' + push: + branches: + - main + paths: + - 'docs/**' + - '.github/workflows/check-broken-links.yml' + workflow_dispatch: + +jobs: + check-links: + runs-on: ubuntu-latest + name: Check for broken links in documentation + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install Mintlify CLI + run: npm install -g mintlify + + - name: Check for broken links + working-directory: ./docs + run: mintlify broken-links