Skip to content
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

Add local search #190

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add local search #190

wants to merge 1 commit into from

Conversation

yujonglee
Copy link

Local search index: Pagefind
UI component: Canary

Both are MIT licensed.

Screen.Recording.2024-10-17.at.9.53.13.PM.mov

Copy link
Author

@yujonglee yujonglee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To try locally, run npm run build at least once(before running start or serve).
Local search index generation runs only on production build.

"--canary-color-primary-h": 270,
},
includeRoutes: ["**/*"],
excludeRoutes: ["next", ...versions].map(v => `**/${v}/**`),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Displaying 2-3 versions is well supported(video), but for N versions, it is not well supported.

I think this is plausible workaround for now, and will come back later.

@SandPod
Copy link
Contributor

SandPod commented Oct 21, 2024

Hey @yujonglee!

This is awesome! 🚀
Just give us some time to look at this properly :)

@yujonglee
Copy link
Author

@SandPod Sure, just let me know if you have any questions.

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