Skip to content

Docs: plain, still thumbnails on the demos index - #980

Merged
AnderBiguri merged 1 commit into
masterfrom
docs/demos-index-plain
Nov 28, 2026
Merged

AnderBiguri merged 1 commit into
masterfrom
docs/demos-index-plain

Conversation

@AnderBiguri

Copy link
Copy Markdown
Member

What does this PR do?

Item 1 of the 28 Nov website review: the demos index looked like an unstyled template next to the rest of the site.

  • Plain thumbnails: demo thumbnails are plain images in a thin border, with the title under them, like the home page's "From real scans" strip. sphinx-gallery's shadows, frames, centred titles and blur-on-hover description overlay are removed; hovering underlines the title, and the tile shows a focus outline. Each tile is still one link.
  • Still thumbnails: 15 demos have animated GIF thumbnails, so about a dozen images moved at once. A build step keeps one frame of each, the one with the most mid-grey pixels (it shows most of the object; the first and last slices are often empty). The animations stay on the demo pages.
  • Placeholder: the 8 demos shown without output used sphinx-gallery's blue and yellow placeholder. They now get a grey TIGRE icon (docs/_static/demo-no-output.png, 400×280, made from tigre-icon.svg). default_thumb_file uses it for newly rendered demos; the same build step swaps it in for the stored ones on docs-demos.

The build step (_demo_thumbnails in conf.py) only touches _images/sphx_glr_*_thumb.* in the built site; nothing in docs/demos or the docs-demos branch changes. It uses NumPy and Pillow, both already in the docs requirements.

Which parts of TIGRE does it touch?

  • Python
  • MATLAB
  • CUDA kernels (Common/CUDA)
  • Docs / demos only

Checklist

  • Tested locally: sphinx-build -W --keep-going -E passes; checked by screenshots in light and dark mode and at phone width.
  • Added or updated tests where it makes sense: none needed, docs only.
  • Demos and docs updated if user-facing behaviour changed.
  • Entry added to changelog.md: none, the website is not part of a release.

Test environment

  • GPU / CUDA: not needed, docs build only.
  • OS: Linux.

An AI coding agent (Claude) wrote this change. The maintainer reviewed screenshots before it was pushed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6n1VKzc1MHHkq9EuERTD3

- Demo thumbnails are plain images with the title under them, like the home
  page's "From real scans" strip: no frames, shadows, centred titles or
  hover overlay.
- Animated thumbnails become still (the frame that shows most of the
  object); a dozen images no longer move at once. The animations stay on the
  demo pages.
- Demos shown without output get a grey TIGRE icon instead of
  sphinx-gallery's blue and yellow placeholder (default_thumb_file for new
  renders, and a build step for the stored ones).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6n1VKzc1MHHkq9EuERTD3
@AnderBiguri
AnderBiguri merged commit 02c72ed into master Nov 28, 2026
2 checks passed
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