Skip to content

Commit ba46572

Browse files
committed
add docsearch
1 parent ffecec0 commit ba46572

File tree

3 files changed

+311
-0
lines changed

3 files changed

+311
-0
lines changed

astro.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { defineConfig, envField } from 'astro/config';
33
import starlight from '@astrojs/starlight';
44
import starlightUtils from '@lorenzo_lewis/starlight-utils';
5+
import starlightDocSearch from '@astrojs/starlight-docsearch';
56

67
import markdoc from '@astrojs/markdoc';
78

@@ -65,6 +66,11 @@ export default defineConfig({
6566
switcherStyle: 'dropdown',
6667
},
6768
}),
69+
starlightDocSearch({
70+
appId: 'XBW1JU7CW5',
71+
apiKey: '6b0341e2f50196d328d088dbb5cd6166',
72+
indexName: 'localstack',
73+
}),
6874
],
6975
sidebar: [
7076
{

package-lock.json

Lines changed: 304 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@astrojs/markdoc": "^0.14.2",
1414
"@astrojs/react": "^4.2.7",
1515
"@astrojs/starlight": "^0.34.0",
16+
"@astrojs/starlight-docsearch": "^0.6.0",
1617
"@astrojs/starlight-markdoc": "^0.4.0",
1718
"@astrojs/starlight-tailwind": "^4.0.1",
1819
"@lorenzo_lewis/starlight-utils": "^0.3.2",

0 commit comments

Comments
 (0)