Repository navigation
Gallery of example decks, rendered by go-slides at build time - #46
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 writesdata/gallery.jsonandstatic/gallery/. Not a shell script.layouts/_shortcodes/gallery.html, a card style incustom.css,content/en/gallery.md.docs.ymlchecks out go-slides/slides atparams.gallery.ref(mainuntil a release hasexamples/), 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