Skip to content

Restore genindex via a stub document - #14

Merged
bboe merged 1 commit into
mainfrom
docs-restore-genindex
Jun 13, 2026
Merged

Restore genindex via a stub document#14
bboe merged 1 commit into
mainfrom
docs-restore-genindex

Conversation

@bboe

@bboe bboe commented Jun 13, 2026

Copy link
Copy Markdown
Member

Follow-up to #13, aligning CodeSorter with the praw-dev docs convention.

#13 fixed the htmlzip/singlehtml build failure by removing the genindex toctree entry — but that also dropped the General Index entry from the docs navigation. The praw libraries (praw/prawcore/asyncpraw/asyncprawcore) handle this differently: they ship a stub docs/genindex.rst (just an "Index" title), so the toctree entry resolves to a real document — singlehtml builds cleanly and the Index stays in the nav.

This PR adopts that same approach: adds docs/genindex.rst and restores the genindex toctree entry in docs/index.rst.

Verified against the RTD env (Python 3.14, Sphinx 9.1.0): both -b html (-W -n) and -b singlehtml (-W) build clean; pre-commit passes.

#13 dropped the genindex toctree entry to fix the singlehtml/htmlzip
build, which also removed the General Index nav entry. The praw-dev
libraries instead ship a stub docs/genindex.rst so the toctree entry
resolves to a real document and singlehtml builds cleanly while keeping
the Index in the nav. Adopt that approach here for consistency.
@bboe
bboe merged commit a819ee1 into main Jun 13, 2026
9 checks passed
@bboe
bboe deleted the docs-restore-genindex branch June 13, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant