Adding new documentation
- Choose the section that owns the subject and confirm that another page does not already explain it.
- Create the canonical English file under
src/content/docs/docs/. Usenpm run docs:new -- <section> <slug>for a safe skeleton. - Replace every
TODOand settitle,description, integerorder,section, and a validstatus. - Write current behavior first. Mark experimental and planned behavior explicitly.
- Create the matching file under
src/content/docs/pt-br/docs/with the same relative path and structural metadata. - Add the page to
src/config/navigation.tsonly when it belongs in global navigation. Supply the PT-BR label throughtranslations. - Link related modules using a route that is valid from the published page, not merely from the source directory.
- Run
npm run check:alland inspect both locale routes, sidebar, table of contents, previous/next links, search, mobile layout, and themes. - Open a focused pull request with validation results and screenshots for visible changes.
The generator never creates fictional prose or an automatic translation. A page containing TODO is not ready to merge.
