Co-authored-by: Artur <145776561+arturict@users.noreply.github.com> Co-authored-by: arturict <arturict@users.noreply.github.com> Co-authored-by: Thomas <thomas@ajnart.fr> Co-authored-by: Afonso Jorge Ramos <afonsojorgeramos@gmail.com> Co-authored-by: Danura30082 <danura30082+github@gmail.com> Co-authored-by: Kushie <122986913+kushiemoon-dev@users.noreply.github.com> Co-authored-by: ajnart <thomas@ajnart.fr> Co-authored-by: ajnart <thomas@ajnart.dev> Co-authored-by: chenjun <chenjun@foxmail.com> Co-authored-by: Wikibear <wikibear@users.noreply.github.com> Co-authored-by: Bergasha <bergasha@gmail.com> Co-authored-by: leafyelin <43306196+leafyelin@users.noreply.github.com> Co-authored-by: Lucas Araujo <lucas.lra@gmail.com> Co-authored-by: GreenMonito <86085570+GreenMonito@users.noreply.github.com> Co-authored-by: Nerdy-Technician <roffo@nerdy-technician.social> Co-authored-by: Jun <34545896+jcstrong@users.noreply.github.com> Co-authored-by: Edmond Abraham <54119952+gitedmond@users.noreply.github.com> Co-authored-by: thrawnx <tight.bulb9384@fastmail.com> Co-authored-by: Chris <58918656+nordada@users.noreply.github.com> Co-authored-by: yi111 <153097222+Yi-111-a@users.noreply.github.com> Co-authored-by: Yanis <naamaneyanis@gmail.com> Co-authored-by: Wikibear <me@sej.de> Co-authored-by: alessiottavo <93441886+alessiottavo@users.noreply.github.com>
4.0 KiB
name, description
| name | description |
|---|---|
| documentation-sync | Write concise Homarr docs only when changed behavior is not clear to a smart, advanced user from the UI or generated schema. Skip routine, obvious, or self-explanatory changes. |
Documentation Sync
Apply the audience and scope rules in AGENTS.md first. A code, UI, or API change alone does not warrant documentation. Add a passage only when a smart, advanced user cannot infer the behavior from the interface or generated schema.
For hidden capabilities such as the advanced widget feature, explain discovery, activation, and non-obvious behavior. For visible standard controls such as Delete, omit narration of what the label already conveys. Use the shortest explanation that preserves necessary technical detail; remove redundant prose in the passage being edited.
When an update is warranted, inspect adjacent pages for structure and types, not as a verbosity target. The mappings below locate needed information; they do not require a page for every feature or code change.
Locate a needed update
These are destinations for warranted updates, not triggers to add documentation:
| Code change | Documentation target |
|---|---|
| New integration | apps/docs/docs/integrations/<slug>/index.mdx and index.ts |
| New widget | apps/docs/docs/widgets/<slug>/index.mdx and index.ts |
| Changed public or management API | apps/docs/docs/management/api/index.mdx |
| New or changed environment variable | Relevant page under apps/docs/docs/advanced/ or installation docs |
| New or changed CLI command | apps/docs/docs/advanced/command-line/ |
| Authentication/provider change | Relevant SSO or authentication page under apps/docs/docs/advanced/ |
| UI or workflow change | Relevant getting-started, management, widget, or integration page |
| Cron-job behavior | apps/docs/docs/management/tasks.mdx |
| Permission behavior | apps/docs/docs/management/users.mdx and the affected feature page |
| Custom Widget or Workshop behavior | Relevant Custom Widget, Assistant, or Workshop documentation |
If no existing row fits, search by the user-visible term and update the page where a user would look for the behavior:
rg -n "<term>" apps/docs/docs apps/docs/src
Follow existing typed patterns
For an integration:
- Add or update
apps/docs/docs/integrations/<slug>/index.tswith the localIntegrationDefinitionpattern. - Add or update
index.mdxwith the establishedIntegrationHeader,IntegrationCapabilites, andIntegrationSecretscomponents as applicable. - Reuse metadata from
@homarr/definitionswhen the docs app already exposes it.
For a widget:
- Add or update
apps/docs/docs/widgets/<slug>/index.tswith the localWidgetDefinitionpattern. - Add or update
index.mdxwith the establishedWidgetHeader,WidgetConfig, andAddingWidgetcomponents as applicable. - Explain only non-obvious option semantics, integration prerequisites, permission constraints, or behavior that the interface does not make clear.
Completion criteria
- Every passage adds information an advanced user cannot reasonably infer from the interface. Remove obvious, repetitive, or unnecessary prose.
- Keep names, defaults, paths, screenshots, links, and prerequisites consistent with code.
- Update every affected page and remove superseded guidance.
- Run the narrowest useful docs validation. Use
pnpm turbo build --filter=@homarr/docswhen links, MDX, generated definitions, or navigation can fail; otherwise run the docs package formatter on touched files. - Treat broken links and anchors as failures; run
pnpm --filter @homarr/docs validate:linksafter the static build.