1
0
Fork 0
📘 The easiest way to add search to your documentation.
Find a file
2020-11-25 15:40:11 +01:00
.circleci chore(ci): update Circle CI config 2020-11-25 15:40:11 +01:00
.codesandbox chore(ci): build UMD packages in CodeSandbox 2020-11-25 15:22:08 +01:00
.github docs(readme): add image previews 2020-09-02 09:57:55 +02:00
cypress chore: more files to root 2020-09-01 11:54:48 +02:00
examples/js docs(examples): add JavaScript example 2020-09-01 18:31:35 +02:00
packages (chore): add website as package + workspace config 2020-11-25 15:28:45 +01:00
scripts chore: more files to root 2020-09-01 11:54:48 +02:00
.editorconfig chore: more files to root 2020-09-01 11:54:48 +02:00
.env.sample chore: more files to root 2020-09-01 11:54:48 +02:00
.eslintignore chore: update tooling 2020-09-01 14:24:58 +02:00
.eslintrc.js feat: update Autocomplete version 2020-11-24 12:08:46 +01:00
.gitignore chore: more files to root 2020-09-01 11:54:48 +02:00
.nvmrc chore(deps): update node to 14.15.0 2020-11-12 17:30:39 +01:00
.percy.json chore: more files to root 2020-09-01 11:54:48 +02:00
.prettierignore chore: update tooling 2020-09-01 14:24:58 +02:00
.prettierrc chore: more files to root 2020-09-01 11:54:48 +02:00
.stylelintrc.json chore: more files to root 2020-09-01 11:54:48 +02:00
babel.config.js chore: ignore no-commonjs lint rule for config files 2020-11-12 17:32:52 +01:00
bundlesize.config.json chore: update TypeScript 2020-11-25 11:37:58 +01:00
CHANGELOG.md docs(changelog): copy DocSearch v1 and v2 changelog 2020-09-01 15:33:02 +02:00
CONTRIBUTING.md docs(contributing): update commit convention example 2020-10-02 12:28:09 +02:00
cypress.json chore: more files to root 2020-09-01 11:54:48 +02:00
global.d.ts chore: more files to root 2020-09-01 11:54:48 +02:00
jest.config.js chore: ignore no-commonjs lint rule for config files 2020-11-12 17:32:52 +01:00
lerna.json chore: more files to root 2020-09-01 11:54:48 +02:00
LICENSE chore: more files to root 2020-09-01 11:54:48 +02:00
package.json (chore): add website as package + workspace config 2020-11-25 15:28:45 +01:00
README.md docs(readme): add image previews 2020-09-02 09:57:55 +02:00
renovate.json chore: more files to root 2020-09-01 11:54:48 +02:00
rollup.base.config.js chore: update tooling 2020-09-01 14:24:58 +02:00
ship.config.js chore(release): rely on Lerna to bump packages 2020-11-25 14:40:56 +01:00
tsconfig.declaration.json chore: more files to root 2020-09-01 11:54:48 +02:00
tsconfig.json chore: update tooling 2020-09-01 14:24:58 +02:00
yarn.lock (chore): add website as package + workspace config 2020-11-25 15:28:45 +01:00

DocSearch

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

npm version License


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

Check out our website for a complete explanation and documentation.

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';

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

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

2. Use the library:

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

3. Customize the color scheme.

DocSearch is made of the following repositories:

License

MIT