Infra: Don't generate broken source link for topic pages (#2843)
This commit is contained in:
parent
1838f20010
commit
1a931bf317
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue