Skip to content

Commit 3407fda

Browse files
authored
fix ai search (#118)
1 parent 7ac32fd commit 3407fda

File tree

2 files changed

+9
-71
lines changed

2 files changed

+9
-71
lines changed

docs/src/theme/SearchBar-TEST/index.tsx

Lines changed: 0 additions & 71 deletions
This file was deleted.

docs/src/theme/SearchBar/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ interface AlgoliaConfig {
1212
contextualSearch?: boolean;
1313
externalUrlRegex?: string;
1414
searchParameters?: Record<string, any>;
15+
insights?: boolean;
16+
askAi?: {
17+
assistantId: string;
18+
indexName: string;
19+
appId: string;
20+
apiKey: string;
21+
};
1522
}
1623

1724
export default function SearchBar(): ReactElement {
@@ -23,6 +30,8 @@ export default function SearchBar(): ReactElement {
2330
appId={algolia.appId}
2431
apiKey={algolia.apiKey}
2532
indexName={algolia.indexName}
33+
insights={algolia.insights}
34+
askAi={algolia.askAi}
2635
transformItems={(items: DocSearchHit[]) => {
2736
return items.map((item) => {
2837
// Extract the pathname from the URL

0 commit comments

Comments
 (0)