1.1 KiB
1.1 KiB
Documentation Sync Rules
When to Update VitePress Docs
When creating or modifying plugins or skills, ensure corresponding VitePress documentation pages exist and are up to date.
Plugin Changes
When a plugin is added or modified in packages/plugins/:
- Ensure
docs/plugins/{plugin-name}.mdexists and reflects the current state - Update
docs/plugins/index.mdto include the plugin in the table - Run
node scripts/validate-docs.cjsto verify
Skill Changes
When a skill is added or modified in packages/plugins/*/skills/:
- Ensure
docs/skills/{skill-name}.mdexists and reflects the current state - Update
docs/skills/index.mdto include the skill in the appropriate plugin section - Run
node scripts/validate-docs.cjsto verify
Doc Page Format
Plugin and skill doc pages use YAML frontmatter with title and order fields. The VitePress sidebar auto-generates from these files.
Validation
Run node scripts/validate-docs.cjs before committing changes to plugins or skills. This is also enforced in CI via the validate-docs job.