Skip to content

ci: always generate screenshots before deploying docs#409

Merged
edouard-lopez merged 1 commit intopure-fish:masterfrom
simono:fix/always-generate-screenshots
Mar 2, 2026
Merged

ci: always generate screenshots before deploying docs#409
edouard-lopez merged 1 commit intopure-fish:masterfrom
simono:fix/always-generate-screenshots

Conversation

@simono
Copy link
Contributor

@simono simono commented Feb 20, 2026

Summary

All screenshot images on the documentation site return 404 (e.g. this one).

The screenshot .png files are not committed to the repo — they're generated at build time by tools/screenshot.fish running in Docker. However, the generation steps in the docs workflow were conditional: they only ran when tools/screenshot.fish itself had changed (via tj-actions/changed-files) or on manual workflow_dispatch. On every other docs deployment, the screenshots were skipped, resulting in a site with no images.

This PR removes the conditional checks so screenshots are always generated before MkDocs deploys the site.

Test plan

  • Verified locally: ran make build-pure-screenshot and make run-pure-screenshot followed by make serve-pure-doc — all 84 screenshots (42 configs × light/mirage) generated successfully and rendered on the docs site

🤖 Generated with Claude Code

Screenshots were only generated when tools/screenshot.fish changed,
but since the PNGs aren't committed to the repo, every other docs
deployment produced a site with missing screenshot images (404s).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@edouard-lopez
Copy link
Member

Thanks

@edouard-lopez edouard-lopez merged commit f1aeabb into pure-fish:master Mar 2, 2026
7 checks passed
@simono simono deleted the fix/always-generate-screenshots branch March 2, 2026 21:15
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.

2 participants