sphinx-doc / sphinx-doc/sphinx

Sphinx Sidebar Showing Different Items for Different Pages

Open
#9,136 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

builder:html type:bug
Dominant language
Python
Stars
8k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
If a document has no other reference links, the sidebar only shows it and the documents alphabetically before it in the sidebar for that section.

To Reproduce
Steps to reproduce the behavior:

$ make html
$ open build/html/index.html

Expected behavior
The sidebar to show correctly.

Your project

Screenshots
Wrong:
Screen Shot 2021-04-26 at 8 55 36 PM

Right:
Screen Shot 2021-04-26 at 8 56 03 PM

Environment info

  • OS: MacOS Big Sur (11.2)
  • Python version: 3.8
  • Sphinx version: 3.5.4
  • Sphinx extensions: None
  • Extra tools: None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running make html and opening build/html/index.html, then compare the sidebar on the linked pages showing the wrong and right behavior. Trace how Sphinx builds the sidebar for those documents and identify why pages with no other reference links show only a partial section. Done means the generated sidebar is consistent across the affected pages.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.