infographic-template-updater
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInfographic Template Updater
信息图模板更新指南
Overview
概述
Update public template lists and gallery mappings when new templates are added in .
src/templates当在中添加新模板时,更新公开模板列表和画廊映射。
src/templatesWorkflow
工作流程
- Collect new template names from the added file (object keys).
src/templates/*.ts- If templates are composed via spreads (e.g. ), also confirm the final keys in
...listZigzagTemplates.src/templates/built-in.ts
- If templates are composed via spreads (e.g.
- Update template lists:
- in the "Available Templates" list.
.skills/infographic-creator/SKILL.md - in the template list.
site/src/components/AIPlayground/Prompt.ts - in the template list. Keep existing ordering/grouping; add new
.skills/infographic-syntax-creator/references/prompt.mdentries near other list templates.list-*
- Sanity check with across the above files to confirm presence.
rg -n "<template-name>"
- 从新增的文件(对象键)中收集新模板名称。
src/templates/*.ts- 如果模板通过展开语法组合(例如),还需确认
...listZigzagTemplates中的最终键。src/templates/built-in.ts
- 如果模板通过展开语法组合(例如
- 更新模板列表:
- 更新中的「可用模板」列表。
.skills/infographic-creator/SKILL.md - 更新中的模板列表。
site/src/components/AIPlayground/Prompt.ts - 更新中的模板列表。 保留现有排序/分组;将新的
.skills/infographic-syntax-creator/references/prompt.md条目添加到其他列表模板附近。list-*
- 更新
- 使用在上述文件中进行完整性检查,确认新模板已存在。
rg -n "<template-name>"
Notes
注意事项
- Do not remove or rename existing entries.
- Keep template names exact and lower-case.
- If a template needs example data, update or extend to match its structure.
site/src/components/Gallery/datasets.ts
- 请勿删除或重命名现有条目。
- 保持模板名称准确且为小写。
- 如果模板需要示例数据,请更新或扩展以匹配其结构。
site/src/components/Gallery/datasets.ts