Skip to content

Commit 31b0db1

Browse files
committed
Config algolia doc search
1 parent 0fb9d75 commit 31b0db1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docuilib/docusaurus.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
5050
themeConfig:
5151
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
5252
({
53+
algolia: {
54+
// If Algolia did not provide you any appId, use 'BH4D9OD16A'
55+
appId: 'BWQFOHCCF3',
56+
// Public API key: it is safe to commit it
57+
apiKey: 'e295e6c247076baa129b10202fc0c6c9',
58+
indexName: 'react-native-ui-lib',
59+
// Optional: see doc section below
60+
contextualSearch: true
61+
// 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.
62+
// externalUrlRegex: 'external\\.com|domain\\.com',
63+
// Optional: Algolia search parameters
64+
// searchParameters: {}
65+
//... other Algolia params
66+
},
5367
navbar: {
5468
title: 'RNUILib',
5569
hideOnScroll: true,

0 commit comments

Comments
 (0)