Skip to content

Add basic pagefind setup#3354

Open
MTRNord wants to merge 1 commit into
mainfrom
MTRNord/pagefind
Open

Add basic pagefind setup#3354
MTRNord wants to merge 1 commit into
mainfrom
MTRNord/pagefind

Conversation

@MTRNord
Copy link
Copy Markdown
Member

@MTRNord MTRNord commented Apr 16, 2026

Description

This adds a basic pagefind setup with the default search box and some extra labeling in case we decide we want some more advanced search dialog later.

It also does not do any styling for now. I think the defaults are sufficient for matrix.org

cc @thibaultamartin This likely needs SRE to update cloudflare for it to work. I am not sure who to ping and whats needed. Iirc you already run something like this on cloudflare so maybe you can help here?

To build pagefind we need npx -y pagefind --site public added to cloudflare


Visual changes

Search Bar in the Navigation

grafik

Search Modal Empty

grafik

Search bar when used

grafik

Related issues

Fixes #19

Role

Website & Content WG

Timeline

N/A

Signoff

See commits

Signed-off-by: MTRNord <MTRNord@users.noreply.github.com>
@MTRNord MTRNord added the enhancement This would be an improvement to the website. label Apr 16, 2026
@MTRNord MTRNord requested a review from a team as a code owner April 16, 2026 15:37
@MTRNord
Copy link
Copy Markdown
Member Author

MTRNord commented Apr 16, 2026

Possibly worth deciding is if we want to exclude the author and category pages fully or just their post lists from the index to prevent duplicate post results.

@MTRNord MTRNord added needs decision The website maintainers need to discuss this topic. and removed needs decision The website maintainers need to discuss this topic. labels Apr 16, 2026
@MTRNord
Copy link
Copy Markdown
Member Author

MTRNord commented Apr 23, 2026

Notes from the meeting:

  • Make it maybe more of a button in the navbar
  • Filter out partial posts in categories, author pages and other places

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This would be an improvement to the website.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement search

1 participant