-
Notifications
You must be signed in to change notification settings - Fork 10
feat: Add search functionality with Pagefind #339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds search functionality to the GRIP website using Pagefind, a static site search library. The implementation includes a modal dialog interface with keyboard shortcuts and quick navigation links.
Key Changes:
- Added a search modal dialog component with Pagefind integration
- Integrated search button into the site header with Cmd/Ctrl+K keyboard shortcut support
- Updated build process to generate Pagefind search index
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
website/layouts/partials/search.html |
New search modal component with dialog UI, Pagefind integration, event handlers for modal interactions, and associated styles |
website/layouts/partials/head.html |
Added search button to header navigation and included the search partial component |
Makefile |
Added Pagefind index generation step to the website build process |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Overview
This PR adds client-side search functionality to the GRIP website via Pagefind and a Search Dialog inspired by Starlight ✨
Tip
Checkout a live preview → grip-dev.netlify.app
Current Behavior ❌
Caution
No search support!
New Behavior ✅
1. Search Bar in Menu
2. Search Dialog
3. Example Search