Infra: Don't generate broken source link for topic pages (#2843)

This commit is contained in:
Hugo van Kemenade 2022-10-23 05:42:06 +02:00 committed by GitHub
parent 1838f20010
commit 1a931bf317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@
<h2>Contents</h2>
{{ toc }}
<br>
{%- if not sourcename.startswith("pep-0000") %}
{%- if not (sourcename.startswith("pep-0000") or sourcename.startswith("topic")) %}
<a id="source" href="https://github.com/python/peps/blob/main/{{sourcename}}">Page Source (GitHub)</a>
{%- endif %}
</nav>