Skip to content

Infra: update pagefind and improve interface#4891

Merged
hugovk merged 4 commits intopython:mainfrom
miketheman:miketheman/pagefind-update
Apr 9, 2026
Merged

Infra: update pagefind and improve interface#4891
hugovk merged 4 commits intopython:mainfrom
miketheman:miketheman/pagefind-update

Conversation

@miketheman
Copy link
Copy Markdown
Member

@miketheman miketheman commented Apr 7, 2026

In Pagefind 1.5.0, a new component UI has been introduced, reducing the
need for custom JS init, and providing an excellent results interface,
and keyboard-friendly activation and navigation.

Reduces the need for a lot of custom styling.

Refs: https://github.com/Pagefind/pagefind/releases/tag/v1.5.0


📚 Documentation preview 📚: https://pep-previews--4891.org.readthedocs.build/

In Pagefind 1.5.0, a new component UI has been introduced, reducing the
need for custom JS init, and providing an excellent results interface,
and keyboard-friendly activation and navigation.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@hugovk
Copy link
Copy Markdown
Member

hugovk commented Apr 8, 2026

In dark mode, there's a white bg flickr for the results:

search.mov

Do we need to adjust some CSS?

@miketheman
Copy link
Copy Markdown
Member Author

Thanks for checking @hugovk ! I live in light-mode 😎
I added a hook to apply the dark theme to pagefind based on the current selector, similar to how Pygments works.

Copy link
Copy Markdown
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Nice to drop all the custom CSS, and we get the / shortcut :)

@hugovk hugovk changed the title refactor: update pagefind and improve interface Infra: update pagefind and improve interface Apr 9, 2026
@hugovk hugovk added the infra Core infrastructure for building and rendering PEPs label Apr 9, 2026
@hugovk hugovk merged commit e704194 into python:main Apr 9, 2026
25 checks passed
@miketheman miketheman deleted the miketheman/pagefind-update branch April 9, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Core infrastructure for building and rendering PEPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants