generate-component-documentation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInstructions
说明
When generating documentation for a new component:
- Follow existing patterns: Use the documentation styles found in the folder (examples:
docs,button.md, etc.)accordion.md - Reference implementations: Base the documentation on the same-named story implementation in
crates/story/src/stories - API references: Use markdown blocks with links to docs.rs for component API references when applicable
code
为新组件生成文档时:
- 遵循现有模式:使用文件夹中的文档样式(示例:
docs、button.md等)accordion.md - 参考实现代码:基于中同名的story实现来编写文档
crates/story/src/stories - API参考:在适用时,使用markdown 块并链接到docs.rs来提供组件API参考
code
Examples
示例
The generated documentation should include:
- Component description and purpose
- Props/API documentation
- Usage examples
- Visual examples (if applicable)
生成的文档应包含:
- 组件描述和用途
- 属性/API文档
- 使用示例
- 视觉示例(如适用)