1
0
Fork 0
📘 The easiest way to add search to your documentation.
Find a file
2015-11-25 15:05:54 +01:00
docs Split website into ./docs and set ./src for code 2015-11-25 15:05:54 +01:00
.gitignore Initial import 2015-11-20 14:54:08 -08:00
README.md Split website into ./docs and set ./src for code 2015-11-25 15:05:54 +01:00

Documentation Search

Add a search autocomplete to your documentation.

Usage

<link rel="stylesheet" href="//cdn.jsdelivr.net/documentationsearch.js/0/documentationsearch.min.css" />
<script src="//cdn.jsdelivr.net/documentationsearch.js/0/documentationsearch.min.js"></script>
documentationSearch({
  apiKey: apiKey, // Mandatory
  indexName: indexName, // Mandatory
  inputSelector: '#search-input' // Mandatory
});

Examples

How do I get my apiKey and indexName?

Just send us an email with the url of the documentation you would like to search, and we'll this info back to you.

How does it work?

The JavaScript library is a wrapper on top of our autocomplete.js library, along with default CSS styling of the dropdown.

The indexing of the data itself is currently done by an internal tool (we will release it later), that runs every hour.

Development

You need ruby, bundler.

bundle install
bundle exec guard

MacOS

If you are using brew and you had brew install openssl, you may need to configure the build path of eventmachine with

bundle config build.eventmachine --with-cppflags=-I$(brew --prefix openssl)/include