Repository navigation
Docs: landing pages for Home and User Guide, gallery view for Examples - #154
Merged
Merged
Conversation
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.
What and why
Makes the docs easier to find your way around: the home page and the User Guide now have landing pages, and the examples page is a gallery.
docs/index.md: four cards at the top (Getting Started, Examples, User Guide, API Reference) in place of the button rowdocs/user-guide/index.md: new landing page that lists each User Guide sectiondocs/examples/index.md: thumbnail gallery with the example name below each image, in place of the numbered listPtyLab/utils/examples.py:ptylab examples buildcopies the last figure of each example as its gallery imagemkdocs.yml: nav entry for the new page, extensions for the cards, example titles without numbers in the sidebarHow it was tested
uv run ptylab examples checkand the tests pass, and I checked the pages locally withmkdocs serve.Notes
The gallery images are generated (git-ignored), so a new example needs no extra step.