-
Notifications
You must be signed in to change notification settings - Fork 43
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
SearchBar #249
Comments
Would VitePress-like algolia search work here? https://vitepress.dev/ So the search should be run against lesson markdown files, right? And maybe the titles of chapters and parts. |
Yes - the search should run against lessons and titles As for algolia - I don't know - on our vitepres site (https://remult.dev) we use the basic vitepress search functionality. |
Svelte tutorial has something similar: https://learn.svelte.dev |
We discussed this with @Nemikolh and decided to try adding similar search as Starlight has: https://starlight.astro.build/guides/site-search/. It's using Pagefind, that allows users to perform the search against static files. Services like algolia would require third party servers which is not something we would like at this point. |
@AriPerkkio I agree with the approach - it sounds great |
@AriPerkkio is there a way to add search, like the one that exists on the TutorialKit website? If you point me in the right direction of where the code that defines that ui element is, I can try and do it myself / contribute |
Ok - spent 3 hours stumbling across astro and frontend skills that I don't have, ended up with something working.
Changed the build script in package json to build the index and copy the index files to public for search during dev:
Added a
And then added it to my custom TopBar.astro It works - its ok for my limited UI skills, and the search is pretty cool. I'm sure you guys can do a much better job - would love to use that when you do |
You can see it in action now at: |
Looks great, thanks for sharing @noam-honig! I think we can use some of this when adding built-in search support into TutorialKit. |
Is your feature request related to a problem?
It'll be great to have a searchbar, so that users can search the tutorial and find relevant chapters for their search
Describe the solution you'd like.
.
Describe alternatives you've considered.
.
Additional context
No response
The text was updated successfully, but these errors were encountered: