-
Notifications
You must be signed in to change notification settings - Fork 35
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 search functionality to https://valkey.io/ website #81
Comments
@madolson @stockholmux Hi guys, if you've got nobody looking in to this internally currently, I'd be happy to have a look at getting this done. I've done a bit of homework and it looks like we may need to come up with a more concrete solution for bringing the markdown and command data over from the (Mind that I only stuffed around with the elasticlunr integration built in to Zola itself.) It looks like Zola (somewhat annoyingly) compiles its search index at buildtime prior to the page generation macros for commands/docs/topics being run. The search term Whereas the search term "generally available" works just fine as the page exists prior to buildtime: Which begs the questions:
Of course, if this is being looked in to already, this is all moot. Hope to hear your thoughts, cheers! |
@kris-ms I did take a stab at using elasticlunr and search on the index generated by Zola but the search was limited to just website content since the documentation content was generated using a separate script. The script need to be tweaked for Zola to auto generate search index for documentation content. My code is in this fork - https://github.com/bbarani/valkey-io.github.io. Feel free to re-use or suggest alternate solutions. |
Looks really nice @bbarani, seems we have run in to the same problems. I also think that the scripts will need to be changed if we want to go the elasticlunr route so that the content already exists as markdown files before Zola builds the site. |
I would definitely like a search on the site, but I do think we're wedded (for a variety of reasons) to having the separation the doc and command markdown which means the out-of-the-box Zola search isn't going to pick them up. I'd like to retain the minimal set of requirements to build the site: so bringing in other scripting engines (python/ruby/perl/whatever) creates new problems on that front. @bbarani and I (months back) did briefly chat about having a separate build-time integration of command and doc markdown. So, if you're just messing about with the site localhost - writing a blog, testing documentation, etc. you wouldn't have a localhost search. However, the GitHub action would invoke a separate process that directly brings in the markdown and reveals it to the index creation. Of course, if you were testing the search index you could build the site the other way locally, but you lose the instant reload, low friction, and quick build time of Zola's built in system. It's a little hacky but would get us to the end goal. Two things come to mind on this strategy:
I think both are manageable. The other option which I've mused about is proposing a change to Zola to fix this issue. I'm not sure how that project would feel about it but I do think it verges on a bug that the search index process does miss valid parts of the template. |
Is your feature request related to a problem? Please describe.
The current https://valkey.io/ website lacks search functionality causing discoverability issues. Adding search functionality to the website can greatly enhance the user experience by allowing users to quickly find the content they're looking for.
Describe the solution you'd like
Add a search functionality to https://valkey.io/ website and index the documentation, command reference and website content.
Describe alternatives you've considered
Leave it as is.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: