Skip to content

Gallery of example decks, rendered by go-slides at build time - #46

Merged
tannevaled merged 1 commit into
mainfrom
docs/gallery
Oct 25, 2026
Merged

tannevaled merged 1 commit into
mainfrom
docs/gallery

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Adds a Gallery page: a card per example deck of go-slides/slides' examples/, with a thumbnail, the deck's source, and an Open in the playground link (the playground's #deck= format) or, for a deck that needs files beside it, a .zip to import.

  • tools/gallery: a Go program (stdlib only, with tests) that builds the slides command from a checkout of go-slides/slides, renders each first slide with it, and writes data/gallery.json and static/gallery/. Not a shell script.
  • layouts/_shortcodes/gallery.html, a card style in custom.css, content/en/gallery.md.
  • docs.yml checks out go-slides/slides at params.gallery.ref (main until a release has examples/), runs the tool's tests and the tool, then builds as before.

Depends on go-slides/slides#52 (the examples); merge that first.

🤖 Generated with Claude Code

tools/gallery (Go, stdlib only, with tests) reads go-slides/slides' examples/,
renders each deck's first slide with the slides command, and writes
data/gallery.json and static/gallery/ (thumbnails, sources, .zip of decks with
files). The Gallery page shows a card per deck with its source and an "Open in
the playground" link in the playground's #deck= share format; a deck with a
media/, kinds/ or parts/ folder is offered as a .zip instead. The CI builds the
gallery before Hugo, from the ref params.gallery.ref names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 345fb8c into main Oct 25, 2026
4 of 6 checks passed
@tannevaled
tannevaled deleted the docs/gallery branch October 25, 2026 17:23
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