Skip to content

docs: hide Edit on GitHub link for autogenerated API pages - #15360

Open
MsfPablo wants to merge 1 commit into
ipython:mainfrom
MsfPablo:docs-hide-edit-link-autogenerated-api
Open

docs: hide Edit on GitHub link for autogenerated API pages#15360
MsfPablo wants to merge 1 commit into
ipython:mainfrom
MsfPablo:docs-hide-edit-link-autogenerated-api

Conversation

@MsfPablo

@MsfPablo MsfPablo commented Aug 7, 2026

Copy link
Copy Markdown

Closes #11919\n\nThe docs/source/_templates/breadcrumbs.html template already suppresses the "Edit on GitHub" link for pages under api/generated/, but it also respects a :github_url: hide page metadata flag. This change adds that metadata to the RST files produced by docs/sphinxext/apigen.py so the broken edit link is hidden on the autogenerated API pages built by ReadTheDocs.\n\nVerified by running python docs/autogen_api.py in a fresh venv and confirming that generated files start with :github_url: hide.\n\nNote: this change was prepared with assistance from Claude (Anthropic).

Adds :github_url: hide metadata to RST files generated by apigen so that the breadcrumbs template suppresses the broken Edit on GitHub link on readthedocs.

Closes ipython#11919
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.

Broken link to "Edit on Github" in ipython documentation

1 participant