Skip to content

Gallery 0.4.1: one screenshot in every library, component, MkDocs and Hugo (sc-9561) - #304

Open
ndbroadbent wants to merge 11 commits into
mainfrom
gallery-screenshot-ports
Open

ndbroadbent wants to merge 11 commits into
mainfrom
gallery-screenshot-ports

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

The screenshot embed from #291 in every gallery library and framework, with Gallery 0.4.1. Finishes sc-9561.

  • Ruby, Python, Rust: screenshot and screenshot_markdown (Rust: ScreenshotOptions). Each runs the shared contract/screenshots cases and refusals.
  • Components: a React <Screenshot> server component (plus loadManifest() in the JS library), an Astro <Screenshot>, a Docusaurus Screenshot, and a VitePress <Screenshot>. When a component fails, its error names the manifest: "The screenshot can't show : …".
  • MkDocs: a visualci-screenshot block. Hugo: a visualci-screenshot shortcode and partial, with markdown: true for Markdown output. The Hugo tests run the contract cases on Hugo 0.146 and 0.171.
  • Examples and the CI check: each framework's example site has an overview page that shows one screenshot. scripts/screenshots/gallery-frameworks.mjs opens that page on all five sites and checks for one linked <picture> with a dark source and a loaded image.
  • Docs: a new page, /docs/gallery/screenshot/, with a snippet for every language and framework. Each guide links to it, and there is a changelog entry file.
  • 0.4.1: the version is bumped in every package, example, lockfile and guide. I'll tag the releases one at a time after this merges.
  • Fixes from the independent review:
    • Rust panicked and Ruby got the wrong size on a whole number written as a float (2880.0). There's now a fixture for it, float-2x.
    • Ruby takes symbols for screen, group, theme, size and loading.
    • The Rails view helper is gone (VisualCI::Gallery.screenshot covers it).
    • The READMEs describe the new screenshot functions and components.

Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@visualci-com

visualci-com Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #1447 · 11 changed, 1 added, 567 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent

Intended (sc-9561): changelog 0.4.1 entry, docs nav/index and llms.txt list the new One screenshot page, its OG image, and the MkDocs example nav gains Overview.

This PR vs base: 11 changed, 1 added since #1445, across 1 build

Snapshot What changed Close-up: before → after
screenshots/changelog/1440-dark (changed)
before · after

Content below here moved
screenshots/changelog/1440-light (changed)
before · after

Content below here moved
screenshots/changelog/390-dark (changed)
before · after

Content below here moved
screenshots/changelog/390-light (changed)
before · after

Content below here moved
and 8 more in the build

docspring/visualci · journeys · build #1444 · 53 unchanged · no changes

This PR vs base: nothing since #1441, across 1 build

Updated as builds change. Agents can review with VisualCI's MCP tools.

This branch has not been deployed

No deployments
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