feat: Add search functionality with Pagefind#339
Open
lbeckman314 wants to merge 9 commits intobmeg:developfrom
Open
feat: Add search functionality with Pagefind#339lbeckman314 wants to merge 9 commits intobmeg:developfrom
lbeckman314 wants to merge 9 commits intobmeg:developfrom
Conversation
There was a problem hiding this comment.
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 <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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