Skip to content

[docs] ToCs are empty or incomplete, wasting screen real estate #2149

Closed
@sneakers-the-rat

Description

@sneakers-the-rat

(raising this here as requested in #2142 )

All these comments are based on current version of v3 docs: https://zarr.readthedocs.io/en/v3/index.html

Currently on the each page (using the tutorial for example here), the primary sidebar is totally empty or contains a single item. on wide screens, this is sort of a curiosity, but it becomes a nuisance on narrower screens. More than anything is just looks weird and unfinished (not your fault, byproduct of the theme)

Wider than medium breakpoint:
Screenshot 2024-08-30 at 2 41 44 PM

Below medium breakpoint:
Screenshot 2024-08-30 at 2 42 10 PM

There is also a related problem where the "index" pages within a section don't appear like indices, eg. https://zarr.readthedocs.io/en/v3/getting_started.html contains an "installation" subpage, but the main body of the page doesn't make that obvious.

The basic issue is that pydata-sphinx-theme has a specific notion of sections that has a double nesting of section -> sectiontoc -> localtoc, where each of the sections (eg. "getting started," "tutorials," etc.) is expected to contain a number of other subpages, but currently they all only contain a single page.

One answer is to just remove the left sidebar ( #2142 ), another is to move the in-page toc to the left sidebar (also described in #2142 ), or thirdly one could split up the content of the sections into multiple pages.

We have experienced this double nav being confusing in other projects that use pydata-sphinx-theme (eg. pyOpenSci/python-package-guide#267 ), because the norm is to only have one navbar, and the right sidebar collapses at medium widths and isn't obvious on mobile, where you get two menu bars to choose from:

Screenshot 2024-09-02 at 12 16 33 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions