mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 19:32:35 +02:00
Update website setup for new API
This commit is contained in:
parent
63e3e31117
commit
b71ef8c0f1
7 changed files with 12 additions and 24 deletions
22
docs/search.md
Normal file
22
docs/search.md
Normal 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"
|
||||
},
|
||||
...
|
||||
}
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue