Show preview.png thumbnails in the examples gallery 🖼️
The examples gallery currently renders text-only
cards. The example spec already reserves an optional preview.png per example — let's render it so
cards get a screenshot of the workflow canvas or its output.
Scope
- Gallery component — update
docs/.vitepress/theme/ExamplesGallery.vue
to show a thumbnail when the example has a preview.png, with a graceful text-only fallback when it doesn't.
- Data loader — update
docs/.vitepress/examples.data.ts
to expose whether each example has a preview.png and a URL the page can load (e.g. the GitHub raw URL …/raw/main/examples/<id>/preview.png).
- Seed screenshots — add a
preview.png to the three existing seed examples
(history-knowledge-qa, ai-radio-podcast, english-essay-corrector).
Verify
cd docs && DOCS_BASE=/astron-agent/ npm run docs:build
Confirm cards with a preview.png show the image and cards without one still render cleanly.
Good for someone comfortable with a bit of Vue + VitePress. Ask here if you'd like pointers.
Show
preview.pngthumbnails in the examples gallery 🖼️The examples gallery currently renders text-only
cards. The example spec already reserves an optional
preview.pngper example — let's render it socards get a screenshot of the workflow canvas or its output.
Scope
docs/.vitepress/theme/ExamplesGallery.vueto show a thumbnail when the example has a
preview.png, with a graceful text-only fallback when it doesn't.docs/.vitepress/examples.data.tsto expose whether each example has a
preview.pngand a URL the page can load (e.g. the GitHub raw URL…/raw/main/examples/<id>/preview.png).preview.pngto the three existing seed examples(
history-knowledge-qa,ai-radio-podcast,english-essay-corrector).Verify
Confirm cards with a
preview.pngshow the image and cards without one still render cleanly.Good for someone comfortable with a bit of Vue + VitePress. Ask here if you'd like pointers.