Skip to content

Commit bfd7a7f

Browse files
committed
trying search ai update
1 parent d78179f commit bfd7a7f

1 file changed

Lines changed: 6 additions & 22 deletions

File tree

docs/docusaurus.config.ts

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,7 @@ const config: Config = {
8383
indexName: indexName,
8484

8585
// Optional: see doc section below
86-
contextualSearch: true,
87-
88-
// 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.
89-
//externalUrlRegex: 'external\\.com|domain\\.com',
90-
91-
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
92-
// replaceSearchResultPathname: {
93-
// from: '/docs/', // or as RegExp: /\/docs\//
94-
// to: '/',
95-
// },
96-
97-
// Optional: Algolia search parameters
98-
// searchParameters: {},
86+
contextualSearch: false,
9987

10088
// Optional: path for search page that enabled by default (`false` to disable it)
10189
searchPagePath: 'search',
@@ -104,22 +92,18 @@ const config: Config = {
10492
searchParameters: {
10593
facetFilters: ['section:SparkFun_DataLogger'],
10694
},
107-
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
108-
// insights: false,
95+
10996
askAi: {
97+
indexName: indexName,
11098
assistantId: assistantId,
111-
sidePanel: true,
112-
appId: appID,
113-
114-
// Public API key: it is safe to commit it
11599
apiKey: appKey,
116-
117-
indexName: indexName,
100+
appId: appID,
101+
sidePanel: true,
118102
searchParameters: {
119103
facetFilters: ['section:SparkFun_DataLogger'],
120104
},
121105
},
122-
//... other Algolia params
106+
123107
},
124108

125109
navbar: {

0 commit comments

Comments
 (0)