Skip to content

Commit d047114

Browse files
committed
docs: [site] use themeConfig.search
- https://vitepress.dev/reference/default-theme-search#algolia-search Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent a819ecf commit d047114

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/.vitepress/config.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -443,11 +443,6 @@ const config: UserConfig<ThemeConfig> = defineConfig<ThemeConfig>({
443443
lastUpdated: true,
444444
markdown: MARKDOWN_OPTIONS,
445445
themeConfig: {
446-
algolia: {
447-
apiKey: ALGOLIA_API_KEY,
448-
appId: algolia.appId,
449-
indexName: index.indexName
450-
},
451446
documentation: await useComments(),
452447
editLink: {
453448
pattern: `${REPOSITORY}/edit/${GITHUB_VERSION}/docs/:path`,
@@ -477,6 +472,14 @@ const config: UserConfig<ThemeConfig> = defineConfig<ThemeConfig>({
477472
}
478473
],
479474
outline: [2, 3],
475+
search: {
476+
options: {
477+
apiKey: ALGOLIA_API_KEY,
478+
appId: algolia.appId,
479+
indexName: index.indexName
480+
},
481+
provider: 'algolia'
482+
},
480483
sidebar: [
481484
{
482485
items: [{ link: '/', text: 'Getting Started' }],

0 commit comments

Comments
 (0)