1
0
Fork 0
📘 The easiest way to add search to your documentation.
Find a file
2015-12-04 11:21:27 +01:00
dev Update credentials 2015-12-03 17:55:43 +01:00
docs Split website into ./docs and set ./src for code 2015-11-25 15:05:54 +01:00
scripts feat(gh-pages): Add gh-pages deploy script 2015-11-26 16:31:20 +01:00
src/lib Add testing scaffold 2015-12-04 11:21:27 +01:00
test Add testing scaffold 2015-12-04 11:21:27 +01:00
.babelrc chore(skeleton): Provide basic library skeleton 2015-11-26 12:03:01 +01:00
.eslintignore chore(skeleton): Provide basic library skeleton 2015-11-26 12:03:01 +01:00
.eslintrc chore(skeleton): Provide basic library skeleton 2015-11-26 12:03:01 +01:00
.gitignore Add testing scaffold 2015-12-04 11:21:27 +01:00
.npmignore chore(skeleton): Provide basic library skeleton 2015-11-26 12:03:01 +01:00
.travis.yml chore(skeleton): Provide basic library skeleton 2015-11-26 12:03:01 +01:00
index.js feat(main): Add main wrapper 2015-11-26 16:10:06 +01:00
package.json Add testing scaffold 2015-12-04 11:21:27 +01:00
README.md Split website into ./docs and set ./src for code 2015-11-25 15:05:54 +01:00
webpack.config.jsdelivr.babel.js chore(skeleton): Provide basic library skeleton 2015-11-26 12:03:01 +01:00
webpack.dev.config.babel.js chore(skeleton): Provide basic library skeleton 2015-11-26 12:03:01 +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