Skip to content

Add pagefind search#1210

Open
cbutcosk wants to merge 12 commits intomainfrom
pagefind_search
Open

Add pagefind search#1210
cbutcosk wants to merge 12 commits intomainfrom
pagefind_search

Conversation

@cbutcosk
Copy link
Copy Markdown
Collaborator

This PR incorporates the PageFind search feature from #1084 .

fchasen and others added 12 commits November 20, 2025 09:54
- Adds the `pagefind` library and `removes` lunr
- Updates the search plugin to index HTML pages and figures using a new `SearchIndex` class
- Output the search index to `_search` along with the frontend API files that PageFind builds
- Adds pagefind data attributes as meta tags and on `.quire-page` to pass page metadata to the index
- Updates the existing search UI to use the pagefind API
- Adds the Sinon library for creating test mocks
- Adds tests for SearchIndex using mocks for the pagefind methods
- Bundles the pagefind search API and imports it when `loadSearchData` is called, so  pagefind will load the index using wasm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants