vitrolom / docsearch

:blue_book: The easiest way to add search to your documentation.

Home Page:https://docsearch.algolia.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DocSearch

The easiest way to add search to your documentation – for free.

npm version License

DocumentationJavaScript PlaygroundReact Playground


DocSearch crawls your documentation, pushes the content to an Algolia index and provides a dropdown search experience on your website.

Preview

Screencast

Light Dark
Light preview Dark preview

Usage

Don't have your Algolia credentials yet? Apply to DocSearch!

1. Import the library as an ECMAScript module:

npm install @docsearch/js@alpha
# or
yarn add @docsearch/js@alpha
import docsearch from '@docsearch/js';

1–bis. Or with a script tag (at the end of the body):

<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"></script>

2. Use the library:

docsearch({
  container: '#docsearch',
  indexName: 'YOUR_INDEX_NAME',
  apiKey: 'YOUR_API_KEY',
});

3. Customize the color scheme.

Related projects

DocSearch is made of the following repositories:

License

MIT

About

:blue_book: The easiest way to add search to your documentation.

https://docsearch.algolia.com

License:MIT License


Languages

Language:CSS 53.3%Language:JavaScript 27.8%Language:TypeScript 18.9%