| title | Best Practices |
|---|---|
| description | Maintainer conventions, comment rules, validation expectations, and guardrails for the Developer Center repository. |
| navigation | false |
| layout | docs |
Use this page when you already know what you need to change and want the repo conventions and guardrails in one place.
For architecture, file map, and migration context, start with Developer Center 101.
For page front matter and _dir.yml metadata, see Front Matter Cheatsheet.
For landing-page ownership, module ordering, and sidebar file ownership, see Navigation Map.
For step-by-step operational tasks, see Maintenance Workflow.
Use this guide when you need conventions for:
- comments and metadata
- CSS comment syntax
- validation before committing
- deciding which layer should own a change
- avoiding common maintenance mistakes
If you need architecture, placement, or workflow steps, use the other maintainer pages linked above.
Use front matter for page metadata.
Use HTML comments only when you intentionally need a hidden comment inside Markdown body content.
Do not use // as Markdown comment syntax.
---
title: Example Page
description: Example metadata in front matter.
---
<!-- Internal maintainer note: revisit this example after the next design update. -->- Use front matter for metadata such as
title,description,icon, andnavigation.* - Use HTML comments for hidden Markdown comments
- Do not add new legacy metadata comments like
<!-- url -->,<!-- type -->, or<!-- summary -->unless the team explicitly decides to keep using them
For the exact page and section metadata shape, use Front Matter Cheatsheet.
CSS comments use /* ... */.
Do not use HTML comments in CSS.
Do not use // comments in CSS files.
/* Global typography tokens */
@theme {
--font-sans: 'Mulish', sans-serif;
}Before committing a meaningful change, use this baseline:
pnpm lint
pnpm typecheck
pnpm buildUse these additional commands when relevant:
pnpm devfor visual checks, navigation checks, and content rendering checkspnpm build:rpcwhen RPC-generated docs or OpenRPC-derived output changedpnpm build:web-clientwhen web-client reference docs changed
For fast local iteration, pnpm exec eslint path/to/file.md is fine, but it is not the full final validation path.
The repo has a pre-commit hook via lint-staged that runs eslint --fix on staged js, ts, vue, and md files. That is helpful, but it is not a substitute for pnpm lint, pnpm typecheck, and pnpm build before you push important changes.
Use these rules of thumb before you start editing:
content/is for authored docs and section metadataapp/components/is for reusable local Vue UIapp/app.config.tsis for shared app and component behaviorapp/assets/css/main.cssis for global CSS, design tokens, and font-family changesserver/api/is for remote-backed helpers and endpointsscripts/is for generated-doc refresh logic and other maintenance scripts
If the question is "which file owns placement or order?", use Navigation Map.
If the question is "what steps should I follow to make this change?", use Maintenance Workflow.
Use these habits to avoid common mistakes:
- Do not treat
.nuxt/,.output/,.data/, and.wrangler/as primary edit targets - Decide whether the change belongs in
content/,app/,server/,scripts/, or config before editing - Prefer source-of-truth files over generated artifacts
- Verify navigation placement whenever you add docs
- Verify styling changes both in CSS tokens and in real rendered pages
- Run the baseline validation commands before finalizing non-trivial changes