Skip to content

feat(website): add search functionality with keyboard navigation#21

Merged
praisethemoon merged 2 commits intomainfrom
sch/website/feature/search
Feb 9, 2026
Merged

feat(website): add search functionality with keyboard navigation#21
praisethemoon merged 2 commits intomainfrom
sch/website/feature/search

Conversation

@praisethemoon
Copy link
Collaborator

Add a client-side search feature for the documentation website:

  • Create build-time search index generator script that extracts content from all page.tsx files including titles, descriptions, and keywords
  • Implement SearchModal component with fuzzy text matching, keyboard navigation (arrow keys, enter, escape), and result highlighting
  • Add search button to Navigation with Cmd/Ctrl+K shortcut support
  • Configure build scripts to generate search index before dev/build
  • Add flexsearch dependency for future optimization potential

The search index is pre-built at build time and loaded client-side, enabling fast documentation search without a backend service.

Description Screenshot
Search Button (not an input, it looks like it, but it will prompt the modal once clicked) image
Search Modal image
Search Modal with a query image

Risk level:

  • Low risk (docs, tests, minor fixes)
  • Medium risk (above average work, refactors)
  • High risk (infra, critical changes)

Add a client-side search feature for the documentation website:

- Create build-time search index generator script that extracts content
  from all page.tsx files including titles, descriptions, and keywords
- Implement SearchModal component with fuzzy text matching, keyboard
  navigation (arrow keys, enter, escape), and result highlighting
- Add search button to Navigation with Cmd/Ctrl+K shortcut support
- Configure build scripts to generate search index before dev/build
- Add flexsearch dependency for future optimization potential

The search index is pre-built at build time and loaded client-side,
enabling fast documentation search without a backend service.
@praisethemoon praisethemoon merged commit ece0461 into main Feb 9, 2026
1 check passed
@praisethemoon praisethemoon deleted the sch/website/feature/search branch February 12, 2026 12:59
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.

2 participants