Imported from Soldier0x0/briefr-docs (
AGENTS.md). Install upstream withnpx skills add Soldier0x0/briefr-docs. Copyright stays with the author.
AGENTS.md
Cursor Cloud specific instructions
This repo is the BRIEFR documentation portal — a static
Docusaurus site. There is no backend or database.
Node.js >=20 is required (the VM ships Node 22).
Standard commands live in package.json scripts and README.md. Key ones:
npm start— dev server with hot reload. Production usesbaseUrl: '/', so locally the site is athttp://localhost:3000/(not/briefr-docs/). Add-- --host 0.0.0.0to expose it.npm run build— production build. The build enforcesonBrokenLinks: 'throw'(seedocusaurus.config.ts), so broken internal links fail the build. Treat a greennpm run buildas the primary quality gate before pushing.npm run typecheck— runstsc(this is the closest thing to a lint step; there is no ESLint config).npm run serve— serves the already-builtbuild/output locally.npm run deploy—npm run build && wrangler deploy(Cloudflare Workers; production URLhttps://docs.projectjupiter.in).
Non-obvious gotchas:
- Search only works after
npm run build. The local search plugin (@easyops-cn/docusaurus-search-local) only generates its index during a production build. Undernpm startthe search box shows "The search index is only available when you run docusaurus build!" — this is expected, not a bug. To test search, runnpm run buildthennpm run serve. scripts/migrate.cjspulls migrated doc pages from the canonicalbriefrrepo (BRIEFR_MAIN_DOCS, default../../briefr-main/docs). Optional unless refreshing migrated guides. After migrate, bumpBRIEFR_DOCS_PINinsrc/components/learn/pin.tsto the validated commit SHA.PORTAL_PATCHESinmigrate.cjsapplies portal-only transforms (systemd callouts, study-guide link removal).- Sync workflow:
.github/workflows/sync.ymlcan refresh migrated docs whenBRIEFR_MAIN_READ_TOKENis configured in repo secrets. Failures usually mean an expired token or missing briefr checkout path. - Responsive screenshots:
npm run shoot(afternpm run build && npm run serve) captures homepage, getting-started, pathways, and a doc page at 390/768/1440px widths. Requiresplaywrightandnpx playwright install chromium. - Plans and specs for multi-step work live under
docs-internal/. The master execution plan isdocs-internal/plans/2026-07-23-briefr-docs-completion.md.