Skip to content

Docs: landing pages for Home and User Guide, gallery view for Examples - #154

Merged
ShantanuKodgirwar merged 7 commits into
mainfrom
docs-user-guide
Nov 19, 2026
Merged

ShantanuKodgirwar merged 7 commits into
mainfrom
docs-user-guide

Conversation

@ShantanuKodgirwar

@ShantanuKodgirwar ShantanuKodgirwar commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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 row
  • docs/user-guide/index.md: new landing page that lists each User Guide section
  • docs/examples/index.md: thumbnail gallery with the example name below each image, in place of the numbered list
  • PtyLab/utils/examples.py: ptylab examples build copies the last figure of each example as its gallery image
  • mkdocs.yml: nav entry for the new page, extensions for the cards, example titles without numbers in the sidebar

How it was tested

uv run ptylab examples check and the tests pass, and I checked the pages locally with mkdocs serve.

Notes

The gallery images are generated (git-ignored), so a new example needs no extra step.

@ShantanuKodgirwar
ShantanuKodgirwar merged commit 35d2207 into main Nov 19, 2026
6 checks passed
@ShantanuKodgirwar
ShantanuKodgirwar deleted the docs-user-guide branch November 19, 2026 15:34
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