Add card layout to tutorials/ and examples/ index pages#3
Merged
Conversation
Mirrors the gallery landing page's tile pattern in the section index pages, so each section reads the same whether you arrived via the Gallery card or via the sidebar. Thumbnails (getting_started.png, visium_mouse_brain.png) are copied into the notebooks repo next to their respective notebooks. Sphinx auto-copies them into _images/ at build time when referenced from :img-top:. The lib's docs/_static/gallery/ thumbnails stay as the source-of-truth for the landing page; consolidation can come later if duplication becomes annoying.
|
📖 Docs preview: https://scverse.org/spatialdata-plot-notebooks/pr-3/gallery.html Built from 8883d7a; redeployed on every push. |
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.
Summary
Mirrors the gallery landing page's tile pattern in the per-section index pages (`tutorials/index.md`, `examples/index.md`) so each section page renders cards with thumbnails — not just a plain toctree.
Changes
Verified locally with the lib's sphinx build under `-W`: both index pages render the cards with thumbnails.
Note on duplication
Thumbnails now live in two places:
Sphinx auto-renames the second copy in the build output (`getting_started1.png`), so there's no clash, just ~240 KB duplication in build artefacts. Consolidation is a future cleanup if it becomes annoying.