3.3 KiB
3.3 KiB
name, description
| name | description |
|---|---|
| documentation-sync | Keep Homarr's Fumadocs documentation aligned with user-facing code. Use when adding or changing integrations, widgets, APIs, environment variables, CLI commands, authentication, permissions, cron jobs, settings, or UI behavior that users must understand. |
Documentation Sync
Update apps/docs/ in the same change as user-facing behavior. Inspect adjacent pages and the docs types before copying a pattern; the source and docs evolve together.
Map the change
| 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. - Document options, required integrations, permissions, empty states, and changed behavior that affect setup or use.
Completion criteria
- Describe the shipped behavior, not an implementation plan.
- 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.