Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
fix: remove noisy pages from indexing
These pages are effectively indexes themselves, no need to include them.

Signed-off-by: Mike Fiedler <[email protected]>
  • Loading branch information
miketheman committed Aug 24, 2025
commit a865e7149112372aaffadb718c6f3f3b0cf77ca0
5 changes: 5 additions & 0 deletions pep_sphinx_extensions/pep_theme/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ <h1>Python Enhancement Proposals</h1>
</header>
{# Mobile search box - visible only on small screens #}
<div id="mobile-search" class="mobile-search-container"></div>
{# Exclude noisy non-PEP pages from Pagefind indexing #}
{%- if pagename.startswith(("404", "numerical", "pep-0000", "topic")) %}
<article>
{%- else %}
<article data-pagefind-body>
{%- endif %}
{# Add pagefind meta for the title to improve search result display #}
<div data-pagefind-meta="title:{{ title }}" style="display:none;"></div>
{{ body }}
Expand Down
Loading