python / python/cpython

Docs: align homepage reading order with chapter navigation

Open
#157,525 4 comments 0 reactions 1 assignee View on GitHub

@m-aciek is already working on this.

Since Sep 14, 2026.

docs
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Documentation

The documentation homepage presents sections in two columns, but its markup groups entries by column. Consequently, the order when the layout collapses to one column differs from the order obtained by reading the desktop layout row by row.

The root toctree in Doc/contents.rst also uses a different chapter order, making Previous/Next navigation inconsistent with the homepage.

Order of chapters, standard viewports Image
Order of chapters, narrow viewports Image
Next topic after last tutorial topic is Python setup and usage (installing/index.rst), which is nowhere near in chapters list Image

We should establish a consistent sequence across:

  • The desktop homepage, read row by row.
  • The single-column homepage on smaller screens.
  • Previous/Next chapter navigation.

The proposed change is to use a wrapping flex layout in Doc/tools/templates/indexcontent.html, arrange the entries in the intended reading order, and update Doc/contents.rst to match.

Linked PRs
  • gh-157528
  • gh-157674

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.