Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Infra: Remove "Contents" and source link from 404 #4185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pep_sphinx_extensions/pep_theme/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ <h1>Python Enhancement Proposals</h1>
<article>
{{ body }}
</article>
{%- if not pagename == "numerical" %}
{%- if not pagename.startswith(("404", "numerical")) %}
<nav id="pep-sidebar">
<h2>Contents</h2>
{{ toc }}
<br>
{%- if not pagename.startswith(("numerical", "pep-0000", "topic")) %}
{%- if not pagename.startswith(("pep-0000", "topic")) %}
<a id="source" href="https://github.com/python/peps/blob/main/peps/{{pagename}}.rst">Page Source (GitHub)</a>
{%- endif %}
</nav>
Expand Down
Loading