mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-27 09:19:53 +00:00
The bot repo's docs are branded at the source, so the rebrand map only still matched names written on purpose, and rewrote the clawdbot compatibility shim and would rewrite an OpenClaw migration guide's commands and paths into ones that do not exist. It is gone. Source and destination are the argument and this app's content/, not two absolute paths into other checkouts, and a page a fixed nav list leaves out is reported. install/ lists migrate-from-openclaw. Converting today's docs left five pages MDX refuses to parse (an HTML comment, an autolink, a bare `<->`), and a page that does not parse is not rendered. mdxSafe turns each into its MDX form outside code; all 317 pages compile. The converter runs only as a script, so its test can import it. Co-authored-by: Hanzo Dev <[email protected]>
40 lines
1.4 KiB
TypeScript
40 lines
1.4 KiB
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
projects: [
|
|
'packages/*',
|
|
// `apps/docs` and not `apps/*`: apps/platform/e2e holds Playwright specs,
|
|
// which are not vitest's to run.
|
|
//
|
|
// Spelled as a config rather than a path because of the exclude: the docs
|
|
// app carries content/docs/projects, a MIRROR of other repos' docs, and
|
|
// some of those repos ship their tutorial code — tests included, which
|
|
// expect that repo's fixtures and working directory. Running them here
|
|
// reported a red suite for two eslint tutorials that were never ours and
|
|
// that nothing in this repo can fix. We publish those pages; we do not own
|
|
// their test runs.
|
|
//
|
|
// `e2e/` is Playwright's (`pnpm --filter docs test:e2e`): those specs
|
|
// drive a browser against a running site, which vitest has no way to give
|
|
// them.
|
|
{
|
|
test: {
|
|
name: 'docs',
|
|
root: './apps/docs',
|
|
exclude: ['**/node_modules/**', '**/dist/**', 'content/docs/projects/**', 'e2e/**'],
|
|
},
|
|
},
|
|
// The bot docs' converter, and nothing under content/: those pages are
|
|
// the bot repo's, converted, not code.
|
|
{
|
|
test: {
|
|
name: 'bot-docs',
|
|
root: './apps/bot-docs',
|
|
include: ['scripts/**/*.test.ts'],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|