mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-01 11:18:24 +02:00
801 B
801 B
id | title |
---|---|
search | Enabling Search |
Algolia Search Integration
Docusaurus supports search using Algolia 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.
const siteConfig = {
...
algolia: {
apiKey: "my-search-only-api-key-1234",
indexName: "my-index-name"
},
...
}