-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Adding search to the documentation #527
Comments
I would love to have this. |
I started the process of getting indexed. |
A few days ago I signed up for it and I just got an email asking if I was the owner and if I can add a JS snippet which I just replied to. |
I see both of your emails, we’ll index it tomorrow 😄 |
Glad to know that you are eager to implement it.
Could you add also another classe name, e.g. DOM "curent" element's parent that must have a steady class name like |
@s-pace Just added those classes and a sitemap. |
Congratulations, your search is now ready! You're now a few steps away from having it working on your website:
<!-- at the end of the HEAD -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<!-- at the end of the BODY -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
apiKey: 'd160789a17f10ba962c4bce1b298fbbb',
indexName: 'emotion_sh',
inputSelector: '### REPLACE ME ####',
debug: false // Set debug to true if you want to inspect the dropdown
});
</script>
Feel free to get back to us if you have any issues or questions regarding the integration. Have a nice day :) |
Hey! I noticed that the website doesn't have search, as you might have seen on other websites, it's pretty simple to add DocSearch to a website like these for free. Some examples:
Fair disclosure: I work for Algolia
The text was updated successfully, but these errors were encountered: