Skip to content

Remove custom Sphinx index monkeypatch#3

Merged
douden merged 1 commit into
mainfrom
moving_patch_to_patches
Jun 28, 2026
Merged

Remove custom Sphinx index monkeypatch#3
douden merged 1 commit into
mainfrom
moving_patch_to_patches

Conversation

@douden

@douden douden commented Jun 28, 2026

Copy link
Copy Markdown
Member

Drops the builder-inited hook that patched IndexEntries.create_index and removes the related TOC/anchor ordering helpers and unused imports. This restores default Sphinx index entry ordering behavior and simplifies the extension setup.

Drops the builder-inited hook that patched `IndexEntries.create_index` and removes the related TOC/anchor ordering helpers and unused imports. This restores default Sphinx index entry ordering behavior and simplifies the extension setup.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the extension’s custom monkeypatch that reordered Sphinx index entries at build time, reverting index entry ordering back to Sphinx defaults and reducing extension complexity.

Changes:

  • Removed the builder-inited hook that monkeypatched IndexEntries.create_index.
  • Deleted the TOC/anchor ordering helper functions and their associated imports (IndexEntries, yaml, os, PurePosixPath).
  • Kept the remaining builder-inited config normalization (parse_config) intact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@douden douden merged commit 9e81311 into main Jun 28, 2026
4 checks passed
@douden douden deleted the moving_patch_to_patches branch June 28, 2026 10:30
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.

2 participants