[dedup] workshop-explanatory-diagrams.md + workshop-ui-screenshots.md: duplicate "Render and QA" SVG instructions (sim=0.771)

未关闭 适合新手
#6,368 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, javascript, playwright

调研方向

阅读.github/workflows/guidelines.md和提到的两个workflow文件,对比共用的SVG渲染说明与各workflow的具体指导。将共用的浅色和深色模式Playwright检查、文本容纳检查以及check-svg-visual-language.js步骤移至指南,并将图表和截图的具体说明保留在各自的文件中。运行gh aw compile,并确认已生成更新后的.lock.yml文件。

由索引模型根据 Issue 内容生成。

描述

dedup documentation
Duplicated sections
  • .github/workflows/workshop-explanatory-diagrams.md — Workshop Explanatory Diagram Generator > Render and QA the Diagram
  • .github/workflows/workshop-ui-screenshots.md — Workshop UI Screenshot Generator > Render and QA Generated SVGs
Overlap
Start a local static file server from the repository root so workshop/images/ is reachable on (127.0.0.1/redacted)
Use Playwright with colorScheme: "light" to render the exact <picture> block and confirm its currentSrc ends with -light.svg.
Repeat with colorScheme: "dark" and confirm currentSrc ends with -dark.svg.
If any text bleeds out of its box, fix both SVGs ... Re-render ... Run scripts/check-svg-visual-language.js with SVG_FILES set ...
Recommended consolidation
  • Canonical home: .github/workflows/guidelines.md, in the "Theme-aware workshop images" area, which already holds shared SVG rules. A shared import would also work.
  • Move the common Playwright light/dark render, text-containment check and check-svg-visual-language.js steps there.
  • Keep in each workflow only what is specific to it: diagrams (boxes, chips, badges, callouts) vs UI screenshots (buttons, tabs, dialogs, panels).
  • Recompile with gh aw compile and commit the updated .lock.yml files.

This issue is ready for an automated agent to resolve.

Generated by 🧹 Markdown Dedup · copilot · auto · ~18 AIC · ⌖ ~1 AIC · ⊞ 4.5K · ◷

  • expires on Dec 2, 2026, 5:37 AM UTC
主要语言
JavaScript
星标
61
派生
45
平均合并
11 小时 50 分钟
30 天内合并 PR
12

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

githubnext/gh-aw-workshop 的其他 Issue

查看 githubnext/gh-aw-workshop 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。