Skip to content

docs: per-example detail pages in the gallery#42

Merged
TMHSDigital merged 1 commit into
mainfrom
docs/gallery-detail-pages
Jul 3, 2026
Merged

docs: per-example detail pages in the gallery#42
TMHSDigital merged 1 commit into
mainfrom
docs/gallery-detail-pages

Conversation

@TMHSDigital

Copy link
Copy Markdown
Owner

Summary

Phase 3 of the site upgrade — the gallery becomes a destination instead of a link farm.

  • Detail pages at gallery/<name>/ per example: hero with click-to-zoom lightbox (ESC closes), witnesses callout, copyable canonical run command, README rendered inline (headings, lists, bold, inline code, fenced blocks; relative links resolve to GitHub), and the full Python source syntax-highlighted at build time with stdlib tokenize — no Pygments, no Jinja; the stdlib-only rule holds.
  • Filter chips on the gallery index from an additive tags field in gallery.json (schema change is additive-only per its _comment contract).
  • Cards link to detail pages; GitHub links live on the detail page.
  • Per-page SEO: unique title/description/canonical/og:image per example.
  • pages.yml now triggers on examples/** so embedded source/READMEs rebuild on change.

Testing

Built locally and drove it in a browser: all 4 detail pages render (README markdown clean, no stray markup outside code blocks), lightbox opens and ESC-closes, chips filter correctly (animation → turntable only, All resets to 4), cards navigate to detail pages, theme toggle carries across pages via the shared localStorage key.

🤖 Generated with Claude Code

Each example now gets docs/gallery/<name>/index.html: the hero render
with a click-to-zoom lightbox, the witnesses callout, a copyable
run-it-yourself command, the README rendered inline (relative links
resolve to GitHub), and the full Python source syntax-highlighted at
build time via stdlib tokenize — no new dependencies, the stdlib-only
rule for build_gallery.py holds.

The gallery index gains topic filter chips driven by an additive tags
field in gallery.json, and cards now link to the detail pages instead
of straight to GitHub. pages.yml rebuilds on any examples/** change so
embedded source and READMEs can never drift.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation ci labels Jul 3, 2026
@TMHSDigital TMHSDigital merged commit 766f3af into main Jul 3, 2026
9 checks passed
@TMHSDigital TMHSDigital deleted the docs/gallery-detail-pages branch July 3, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant