mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-10 22:41:17 +00:00
ci(docs): fail PRs on broken Mintlify internal links
Add apps/docs check-links (mintlify broken-links) and run it in the existing CI workflow. Assert a clean report because mintlify 4.2.x can exit 0 even when broken links are printed. Fixes #1365
This commit is contained in:
parent
05aab3a09f
commit
e382532d47
2 changed files with 9 additions and 1 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
|
@ -31,3 +31,10 @@ jobs:
|
|||
|
||||
- name: Run Biome CI (format & lint on changed files)
|
||||
run: bunx biome ci --changed --since=origin/main --no-errors-on-unmatched
|
||||
|
||||
# mintlify@4.2.x may exit 0 even when it prints broken links
|
||||
- name: Check docs for broken internal links
|
||||
working-directory: apps/docs
|
||||
run: |
|
||||
set -o pipefail
|
||||
bun run check-links 2>&1 | tee /dev/stderr | grep -q "no broken links found"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@
|
|||
"portless": { "name": "docs.dev.supermemory", "script": "dev:app", "appPort": 3003 },
|
||||
"scripts": {
|
||||
"dev": "portless",
|
||||
"dev:app": "bunx mintlify@latest dev --no-open --port 3003"
|
||||
"dev:app": "bunx mintlify@latest dev --no-open --port 3003",
|
||||
"check-links": "mintlify broken-links"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue