Update website setup for new API

This commit is contained in:
Frank Li 2017-08-07 10:34:53 -07:00
parent 63e3e31117
commit b71ef8c0f1
7 changed files with 12 additions and 24 deletions

22
docs/search.md Normal file
View file

@ -0,0 +1,22 @@
---
id: search
title: Documentation Search
---
## Algolia Search Integration
Docusaurus supports search using [Algolia DocSearch](https://community.algolia.com/docsearch/). Once you have set up your site, you can use the link above to have Algolia crawl your website's documentation pages. Algolia will then send you an API key and index name for your site.
Enter your search-only API key and index name into `siteConfig.js` in the `algolia` section to enable search for your site. The search bar will be in the header navigation bar in between internal links and external links. To disable the search bar, delete the `algolia` section in the `siteConfig.js` file.
```js
const siteConfig = {
...
algolia: {
apiKey: "my-search-only-api-key-1234",
indexName: "my-index-name"
},
...
}
```