Skip to content

Sidebar/Navbar in not working without JavaScript #989

Description

@alonaoum

Describe the bug

context
When viewing the sphinx-book-theme on a small screen, the sidebar on the left side is hidden and should be made visible by clicking on the button in the top left. However, this only works if JavaScript (JS) is enabled. If JavaScript is disabled, then this button does not work making it impossible to navigate the documentation efficiently.

Examples with navbar/sidebar which works without JavaScript:

expectation
I expect the sidebar to be shown, when clicking the button.

bug
But instead nothing happens.

problem
This is a problem because it makes it impossible to navigate the documentation efficiently.

Reproduce the bug

  1. Check whether JavaScript is disabled
  2. Go to https://sphinx-book-theme.readthedocs.io/en/stable/
  3. Make your browser window small, so that the sidebar collapses/vanishes
  4. Click on the "show sidebar" button

List your environment

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions