Skip to content

Commit 9dcc21d

Browse files
Copilotpelikhan
andauthored
[workflow-editor] Remove duplicated theme-aware picture snippet from explanatory-diagrams workflow (#1841)
* Initial plan * chore: remove duplicate picture block from explanatory diagrams workflow Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent c30c0e2 commit 9dcc21d

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

.github/workflows/workshop-explanatory-diagrams.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/workshop-explanatory-diagrams.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -270,21 +270,14 @@ After generating the SVG pair:
270270

271271
1. Insert or replace exactly one image reference in the source workshop file
272272
near the concept it explains.
273-
2. Use this format exactly:
274-
275-
```html
276-
<picture>
277-
<source media="(prefers-color-scheme: dark)" srcset="images/<stem>-dark.svg">
278-
<source media="(prefers-color-scheme: light)" srcset="images/<stem>-light.svg">
279-
<img alt="Concise descriptive alt text" src="images/<stem>-light.svg">
280-
</picture>
281-
```
282-
283-
1. Use the light variant as the fallback `src`; put alt text only on `<img>`.
284-
2. Keep the edit minimal and line-precise.
285-
3. If needed, add at most two short sentences to introduce a new diagram.
286-
4. Do not reformat surrounding sections or migrate more than one image per run.
287-
5. Do not delete the original until no Markdown or HTML reference uses it.
273+
2. Use the canonical theme-aware `<picture>` format from
274+
`.github/workflows/guidelines.md` (Theme-aware workshop images section).
275+
276+
3. Use the light variant as the fallback `src`; put alt text only on `<img>`.
277+
4. Keep the edit minimal and line-precise.
278+
5. If needed, add at most two short sentences to introduce a new diagram.
279+
6. Do not reformat surrounding sections or migrate more than one image per run.
280+
7. Do not delete the original until no Markdown or HTML reference uses it.
288281

289282
---
290283

0 commit comments

Comments
 (0)