question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DocSearch ready for your documentation website

See original GitHub issue

👋 team:

Congratulations, your search is now ready! You can try a showcase here: Preview here

I’ve successfully configured the underlying crawler and it will now run every 24h.

You’re now a few steps away from having it working on your website:

  • Copy the following CSS/JS snippets and add them to your page
<!-- 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: 'ae94c9e3ee00ea8edddd484adafc37cd',
  indexName: 'draft-js',
  inputSelector: '### REPLACE ME ####',
  debug: false // Set debug to true if you want to inspect the dropdown
});
</script>
  • Add a search input in your page if you don’t have any yet. Then update the inputSelector value in JS snippet to a CSS selector that targets your search input field.
  • Optionally customize the look and feel by following the DocSearch documentation
  • You can also check your configuration in our GitHub repo.

The integration within Docusaurus is even faster. We do provide analytics on the search. Feel free to ping if you want me to grant you access.

Please open a pull request if want to leverage your configuration!

Feel free to get back to us if you have any issues or questions regarding the integration.

We’d also be happy to get your feedback and thoughts about DocSearch - so we can continue to improve it.

Have a nice day 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

5reactions
yangshuncommented, Sep 13, 2018

I have no permissions to close this issue but we can close this now. We have search on draftjs.org now! 🎉

2reactions
s-pacecommented, Sep 10, 2018

Hi all.

Indeed @JoelMarcey, this key is the one to integrate within your website:

apiKey: 'ae94c9e3ee00ea8edddd484adafc37cd',
indexName: 'draft-js',

I have updated your configuration in order to acknowledge and integrate the changes from your website. Effects are live and deployed.

Let us know if you need anything else. Thank you @yangshun

Read more comments on GitHub >

github_iconTop Results From Across the Web

DocSearch: Search made for documentation | DocSearch by ...
Already trusted by your favorite docs. Free: 100%. Searches per month: +100M. DocSearch Live: +4000. Discover DocSearch on the Bootstrap documentation.
Read more >
Who can apply? | DocSearch by Algolia
Your website must be a technical documentation of an open source project or a technical blog. We do not index commercial content. Your...
Read more >
Run your own | DocSearch by Algolia
Run your own. If you want to update your results with more control, or if you are not compliant with our checklist, or...
Read more >
FAQ | DocSearch by Algolia
The free DocSearch we provide will crawl open-source documentation project pages or technical blog. To use it on other parts of your website...
Read more >
How does it work? | DocSearch by Algolia
Getting up and ready with DocSearch is a straightforward process that requires three steps: you apply, we configure the crawler and the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found