test(site): [SITE-05] enforce built links and validate online editors

This commit is contained in:
Harvey Zhao committed 2026-09-16 09:55:00 +08:00
1 parent 6b580d1667
commit fb78328c43
17 files changed
+2122 -15

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import process from 'node:process'
import { checkSiteLinks } from './site-build/links.ts'
try {
const report = await checkSiteLinks(`${process.cwd()}/docs`)
console.log(JSON.stringify(report, null, 2))
if (report.issues.length)
process.exitCode = 1
}
catch (error) {
console.error(error instanceof Error ? error.message : error)
process.exitCode = 1
}