Skip to content

Hide edit links on generated pages - #1688

Open
Herrtian wants to merge 1 commit into
readthedocs:masterfrom
Herrtian:hide-edit-link-generated-pages
Open

Hide edit links on generated pages#1688
Herrtian wants to merge 1 commit into
readthedocs:masterfrom
Herrtian:hide-edit-link-generated-pages

Conversation

@Herrtian

@Herrtian Herrtian commented May 6, 2026

Copy link
Copy Markdown

Summary

  • skip breadcrumbs edit links on generated pages (genindex, search)
  • keep edit links on regular source pages
  • add a regression test for the GitHub edit-link context

Checks

  • uv run --with pytest --with Sphinx --with-editable . pytest tests/test_builders.py::test_edit_links_are_skipped_for_generated_pages
  • PYTHONUTF8=1 uv run --with pytest --with Sphinx --with-editable . pytest tests/test_builders.py
  • git diff --check

Fixes #765.

@Herrtian
Herrtian requested a review from a team as a code owner May 6, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant