Skip to content

Commit 645df60

Browse files
committed
feat: enable docsearch from algolia
1 parent 4842d7c commit 645df60

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/docusaurus.config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable @typescript-eslint/no-var-requires */
2+
/* eslint-disable max-len */
13
// @ts-check
24
// Note: type annotations allow type checking and IDEs autocompletion
35

@@ -67,6 +69,29 @@ const config = {
6769
textColor: '#fff',
6870
isCloseable: false,
6971
},
72+
algolia: {
73+
// The application ID provided by Algolia
74+
appId: 'CQB0RZ7E1F',
75+
76+
// Public API key: it is safe to commit it
77+
apiKey: '97b68f94056a6d6fad56df43bf178866',
78+
79+
indexName: 'react-tooltip',
80+
81+
// Optional: see doc section below
82+
contextualSearch: true,
83+
84+
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
85+
// externalUrlRegex: 'external\\.com|domain\\.com',
86+
87+
// Optional: Algolia search parameters
88+
// searchParameters: {},
89+
90+
// Optional: path for search page that enabled by default (`false` to disable it)
91+
searchPagePath: 'search',
92+
93+
// ... other Algolia params
94+
},
7095
navbar: {
7196
title: 'React Tooltip',
7297
logo: {

0 commit comments

Comments
 (0)