-
-
Notifications
You must be signed in to change notification settings - Fork 355
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 Algolia Search (next to FlexSearch) as an option #130
Comments
I am confused, why does getdoks.org already use algolia while this repo does not use it? |
It looks like you're switching how search is provided in Doks, but I wanted to inquire about the current state. By default, it doesn't seem like flexsearch works in a freshly cloned repo. I've tried changing the variables (using "ALL", etc., in the config), but the indexing variable seems to have no effect on behavior (though the show one works). Is there a command or similar I'm missing that builds the index? Should I just roll my own here for now? Thanks, enjoying Doks. |
No, I'm not switching. FlexSearch is the best search solution for static websites — in my opinion. Not sure, why it doesn't work for you. Do you have a repository you could share? Note, Doks v1.0 (available soon) will have more advanced options ( e..g select sections, taxonomies, and terms to index) and uses a smarter setup (e..g. using a JSON index file). |
The repo is here: https://github.com/smythp/sigstore-docs-replatform I've reenabled the search. The flex-related variables are set to empty lists, though I've gone through a number of permutations. Thank you for any guidance, I was going to set up another provider but I'd prefer to try to get the default for this theme working. |
It's an issue in the file that generates the index (it fails on a commented-out part). Delete these lines and you're good to go! https://github.com/smythp/sigstore-docs-replatform/blob/main/assets/js/index.js#L78-L94 |
Henk, this worked like a charm. Thank you. |
Doks comes with FlexSearch preconfigured out of the box. If you want to use DocSearch in stead, this guide will explain how. |
Summary
Basic example
Motivation
The text was updated successfully, but these errors were encountered: