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
added search bar to docusarurus #12
Conversation
Co-authored-by: Dariia Porechna <35382599+dariolina@users.noreply.github.com>
I have noticed the actual search bar is missing from |
@dariolina Are you running the code locally or trying to deploy it to some sort of test build? On my screen it shows up perfectly fine, however, I am just running it on a local host and not trying to build it to production or other machine. I will still add the code you shared, just to make sure, but I am still curious about what might be going on. Thanks Edit: I just added it to the navbar and seems to be working well. You can adjust where you would like to place it by adjusting the index of the items array, 0 being the most left and items.length being all the way to the right. However after the change, the search bar is to the left of the night/day-mode switch. |
Hmm, it didn't show up before. Now it does regardless of being present in navbar. Also the background is a bit too purple to my taste. Let's merge it as is and I will play around with positions and theme some other time. Thank you a lot for your contribution! |
Hi @SethY8s, thank you for this contribution. You won the $500 prize for best documentation contribution of the month. Could I please get your Discord and an email to send a winner's form to? Please see the post below for more details. |
@ryyeung Hey Ryan, well that was a very nice surprise! My discord is: seth8656#6240 and my email is: Just to let you know I am actively being interviewed at Subspace, and if you would like to choose another candidate that is not being interviewed, feel free to! I really had no intention of getting a reward. Thanks Ryan! |
@SethY8s Great to hear that! We decided to stick to our word, you had an amazing contribution. Please check your email for the form that I will send. |
Added the bare minimum for a search bar with Docusaurus. Please note that I did not add the Algolia API keys, so the search bar and modal will not function properly.
Algolia provides free search API keys for documentation. You can learn more about the program here https://docsearch.algolia.com/apply/.
Also here is the Docusaurus link for how I set the search bar up.
https://docusaurus.io/docs/search#using-algolia-docsearch
Please critique the PR all you want, and I would be more than willing to get the API keys if allowed. Thanks