Skip to content

Write HTML. Render video. Built for agents.

ci: add docs validation workflow and skip CI on docs-only changes

James769d34f8f926
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b3346785da..f88f89e125 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,8 +2,16 @@ name: CI
on:
pull_request:
+ paths-ignore:
+ - "docs/**"
+ - "*.md"
+ - "DOCS_GUIDELINES.md"
push:
branches: [main]
+ paths-ignore:
+ - "docs/**"
+ - "*.md"
+ - "DOCS_GUIDELINES.md"
concurrency:
group: ci-${{ github.ref }}
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
new file mode 100644
index 0000000000..ad887ec8d4
--- /dev/null
+++ b/.github/workflows/docs.yml
@@ -0,0 +1,35 @@
+name: Docs
+
+on:
+ pull_request:
+ paths:
+ - "docs/**"
+ - "DOCS_GUIDELINES.md"
+ push:
+ branches: [main]
+ paths:
+ - "docs/**"
+
+concurrency:
+ group: docs-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ validate:
+ name: Validate docs
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 22
+
+ - name: Validate build
+ working-directory: docs
+ run: npx mint validate
+
+ - name: Check broken links
+ working-directory: docs
+ run: npx mint broken-links
diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml
index c131bf8c98..6839c403a8 100644
--- a/.github/workflows/regression.yml
+++ b/.github/workflows/regression.yml
@@ -2,9 +2,17 @@ name: regression
on:
pull_request:
+ paths-ignore:
+ - "docs/**"
+ - "*.md"
+ - "DOCS_GUIDELINES.md"
push:
branches:
- main
+ paths-ignore:
+ - "docs/**"
+ - "*.md"
+ - "DOCS_GUIDELINES.md"
jobs:
regression-shards: