Review README.md and CONTRIBUTING.md for all relevant repository information.
- Use
npm installto install dependencies. - Use
npm run devto start the local development server (runsprebuildautomatically). - Use
npm run buildto produce a production build (also runsprebuildautomatically). - Do not edit files in
build/; it is compiled output. - The
scripts/prebuild.jsscript must run before the dev server or build — it is wired intopredev/prebuildhooks, so callingnpm run devornpm run buildis sufficient.
- TypeScript (config files and scripts), MDX/Markdown (content).
- Prettier is configured via
@harperdb/code-guidelines/prettier(seepackage.json). - Format command:
npm run format:write. Run this after editing any.ts,.md, or.mdxfiles. - The lint script is a no-op (
echo 0); do not expectnpm run lintto catch issues.
Prefer plain ASCII characters in Markdown unless a typographic character is genuinely needed for meaning. This keeps content searchable, easy to type, and consistent with the rest of the docs.
-
Separators between fields — use a regular hyphen with spaces (
-), not bullet characters (•,·) or HTML entities ( ). ForType:/Default:reference blocks, put each on its own line separated by a blank line (the established pattern inreference/logging/configuration.md,reference/http/configuration.md, etc.):### `some.option` Type: `boolean` Default: `false` Description text here.
-
Type annotations — use the form
`<type>` (<modifier>)when a hint is useful, e.g.`string` (duration),`number` (ratio). Do not invent compound type names like`duration string`. -
Hyphens vs. dashes — em dashes (
—) are fine for parenthetical asides and match existing prose; do not use them as field separators. Do not use en dashes (–) except for numeric ranges like9229–9231. -
No HTML entities for whitespace — let Markdown / Prettier handle spacing; never reach for
to force layout. -
Lists — use
-for bullets (Prettier's default) and avoid mixing with*or•. -
Emoji — only when the user explicitly requests it.
- Content lives in four directories:
learn/,reference/,release-notes/, andfabric/. - Sidebar configs:
sidebarsLearn.ts,sidebarsReference.ts,sidebarsReleaseNotes.ts,sidebarsFabric.ts. - Reference is versioned; current version is v5 (
reference/). Archived v4 content is inreference_versioned_docs/version-v4/. - Do not modify
reference_versioned_docs/for current (v5) work; editreference/instead. - The
<VersionBadge>component is globally registered — no import needed in.md/.mdxfiles. - See the complete repository organization in
CONTRIBUTING.md
- There is no automated test suite. Verification is done by running the dev server or build.
npm run buildis the best end-to-end check — it will fail on broken links, missing imports, or MDX errors.npm run typecheckchecks TypeScript config files only.- Known issue:
npm run serve(post-build preview) 404s on paths like/docs/4.Xlocally due to an upstreamserve-handlerbug. This is not a real breakage — see CONTRIBUTING.md for details.
- CI runs
npm run buildandnpm run format:checkon pull requests. - If CI fails on formatting, run
npm run format:writelocally and commit the result.