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>
|
<h2>Contents</h2>
|
||||||
{{ toc }}
|
{{ toc }}
|
||||||
<br>
|
<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>
|
<a id="source" href="https://github.com/python/peps/blob/main/{{sourcename}}">Page Source (GitHub)</a>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in New Issue