Skip to content

Add Astro GitHub Pages site showcasing the extensions#14

Merged
jongio merged 10 commits into
mainfrom
jongio-upgraded-spoon
Jun 29, 2026
Merged

Add Astro GitHub Pages site showcasing the extensions#14
jongio merged 10 commits into
mainfrom
jongio-upgraded-spoon

Conversation

@jongio

@jongio jongio commented Jun 28, 2026

Copy link
Copy Markdown
Owner

What

Adds an Astro site under site/ that showcases the six Copilot canvas extensions, and wires up GitHub Pages deployment.

Highlights

  • Showcase landing page — a card per extension (news-aggregator, stock-ticker, random-animal, language-tutor, wiki-discover, code-tutor), each linking to its folder, with a CANVAS badge and description pulled from the README.
  • Copy-to-clipboard install prompts — every card (and the "Install one" section) has a Copy install prompt button that copies the exact agent prompt, e.g. install the stock-ticker canvas from jongio/copilot-extensions/extensions/stock-ticker.
  • Screenshot placeholders — each card shows site/public/screenshots/<slug>.png, falling back to a shared placeholder.svg ("Screenshot coming soon") until real images are dropped in. See site/public/screenshots/README.md for the filename map.
  • About page describing the collection.

Deploy plumbing

  • Official Astro → Pages flow: .github/workflows/deploy.yml at the repo root uses withastro/action@v2 (pointed at ./site) → actions/deploy-pages@v4, with permissions: { contents: read, pages: write, id-token: write } and concurrency: { group: pages }.
  • Triggers on push to main for changes under site/** (or the workflow itself).
  • Base path is set to /copilot-extensions/ (project site) in astro.config.mjs; built output uses base-aware URLs for assets and internal links.
  • Pages is enabled with Source → GitHub Actions; live URL: https://jongio.github.io/copilot-extensions/

Verification

  • npm run build succeeds (2 pages + client bundle).
  • Built HTML carries the /copilot-extensions/ prefix on assets and links (no bare /...).
  • Copy button verified to write the correct prompt to the clipboard and flip to "Copied!".
  • The placeholder fallback fires for not-yet-added screenshots.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

jongio and others added 10 commits June 28, 2026 12:44
Scaffold an Astro site under site/ that showcases the six Copilot canvas
extensions, with per-card copy-to-clipboard install prompts and screenshot
placeholders that fall back to a shared SVG until real images are added.
Deploys via the official withastro/action flow from a root workflow pointed
at the site/ subfolder; base path is set to /copilot-extensions/.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Capture each of the six canvas extensions running with real, seeded content
(live Yahoo quotes, Google News headlines, a Wikipedia article, a generated
Spanish course, a random animal, and the code-tutor onboarding) and drop them
into site/public/screenshots/ so the cards render real product shots instead of
the placeholder.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Clicking a card now opens a lightbox with a big version of it (large screenshot,
title, description, install prompt + copy, View on GitHub) and prev/next
navigation across all extensions via side arrows, arrow keys, Esc to close, and a
position counter.

Reorder into three groups — Tutors (code-tutor first, then language-tutor),
Live & discover (stock-ticker, news-aggregator, wiki-discover), and Just for fun
(random-animal) — each rendered as its own labeled section.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Cover the new interactive site: a build-and-assert smoke test (test/smoke.test.mjs,
npm test) verifies the base path, all six extension cards, group order with
code-tutor first, the embedded lightbox data, the lightbox markup, and that every
card has a real screenshot. Add a site job to the Validate workflow so it runs on
every push and PR. Matches the repo's zero-dependency, self-contained test style.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace the empty onboarding shot with a populated Learn view (five topics,
reading-level slider, progress chips, code-review findings) so the card reflects
what the extension does once a codebase is analyzed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Card thumbnails scale to 1.08 on hover/focus with a smooth transition (and a
reduced-motion guard). Recapture the language-tutor shot anchored at the top so
the profile bar and course header aren't clipped.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Match the other gh-pages sites: a sticky header with a brand, nav, a persisted
light/dark theme switcher (no-flash, data-theme + localStorage), and a GitHub
repo icon. Add a 'by Jon Gallant (jongio)' byline + footer credit. Extend the
smoke test to assert the title, theme toggle, and repo link.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
# Conflicts:
#	.github/workflows/validate.yml
@jongio jongio merged commit a7a5b4c into main Jun 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant