- Use PascalCase for all enum values, including string literal unions and documentation snippets. This keeps the codebase and docs aligned with the runtime values exposed by the SDK.
- In documentation examples (e.g.,
src/pages/docs/types.tsx), declare enums before any related type aliases so readers see the enum values ahead of the structures that consume them.
- Reserve the
Propssuffix for top-level argument objects (e.g., the direct parameters passed to public APIs). When defining nested structures inside those props, prefer theParamssuffix if a suffix is needed.
- Treat
src/lib/images.tsLIBRARIESas the SSOT for framework library membership and order. - Home,
/languages, setup pages, sidebars, and sponsor lists should derive framework entries fromLIBRARIES; add metadata fields there instead of duplicating local arrays. - Install commands that include package versions should derive from package
metadata helpers (for example
FLUTTER_PACKAGE,KMP_PACKAGE, andMAUI_PACKAGEinsrc/lib/versioning.ts), not inline version literals in page components. src/lib/versioning.tsmust only read framework package versions fromsrc/generated/version-metadata.json. That generated file is synced from the real package metadata byscripts/sync-versions.shso Vercel can build from thepackages/docsroot without importing files outside the docs package.