Visitar URL original
Implement collapsable navigation menus like Wikipedia on moblie · Issue #245 · python/python-docs-theme · GitHub
Skip to content

Implement collapsable navigation menus like Wikipedia on moblie #245

Description

@bordenc

The Python documentation table of contents is massive. It's unwieldy on a mobile device. A lot of that comes from itemising all the changelogs going back to 3.0 release. In and of itself, that's fine, but it takes a lot of scrolling to find anything. The indentation also isn't terribly clear to identify what is a subheading of what. Highly nested headings exacerbates this.

Collapsable TOC headings, used on sites like Wikipedia, would help tremendously with this. That way, mobile users could see a cleaner layout resembling the desktop TOC display, then be able to drill down into whatever topic they're looking for.

Activity

  1. hugovk commented on Jul 5, 2025

    @hugovk
    Member

    Please can you give links and screenshots of both the specific Python table of contents and also an example Wikipedia page?

  2. bordenc commented on Jul 5, 2025

    @bordenc
    Author

    Here's how the TOC looks on my device (Firefox on Android)

    Image Image Image

    And here's how a couple Wikipedia pages look on my device (with an expanded section to show the effect)

    Image Image

    To be specific, although Wikipedia has collapsable sections, what I'm hoping for is collapsable menus, where subheadings can roll up into the heading. And another example I found on the web.

  3. hugovk commented on Jul 6, 2025

    @hugovk
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions