文档组件
doc/ 现在可以直接在 MDX 里使用一组文档组件,不必继续手写大段 Markdown 表格。它们已经通过 doc/mdx-components.tsx 全局注册,所以任意 .mdx 页面都能直接写 JSX 标签。
1. 多工具功能矩阵
2. 多系统支持矩阵
3. 系统展示卡片
4. 技术栈命令参考
使用方式
在任意 MDX 页面中直接写:
<FeatureMatrix items={[{tool: 'CLI', capabilities: ['sync'], surfaces: ['tnmsc']}]}/>
<SupportMatrix items={[{system: 'Windows', support: 'full'}]}/>
<PlatformGrid items={[{name: 'Windows', description: 'Primary desktop target'}]}/>
<CommandReference items={[{stack: 'pnpm', task: 'dev', command: 'pnpm -C doc dev'}]}/>如果后面还要继续扩展,建议沿着这个方向做,而不是回到散乱的原生 Markdown 表格:
- 表格类信息继续复用
FeatureMatrix、SupportMatrix、CommandReference - 偏展示型内容复用
PlatformGrid - 需要完全自由布局时,再单独加新的卡片或对比组件
Last updated on