Skip to content

Commit 9db05ff

Browse files
add docsearch (#18)
Co-authored-by: Brian Rinaldi <brian.rinaldi@gmail.com>
1 parent 50be9d5 commit 9db05ff

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
import starlightLinksValidator from 'starlight-links-validator'
67

78
import markdoc from '@astrojs/markdoc';
@@ -85,6 +86,11 @@ export default defineConfig({
8586
switcherStyle: 'dropdown',
8687
},
8788
}),
89+
starlightDocSearch({
90+
appId: 'XBW1JU7CW5',
91+
apiKey: '6b0341e2f50196d328d088dbb5cd6166',
92+
indexName: 'localstack',
93+
}),
8894
],
8995
sidebar: [
9096
{

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
"@expressive-code/plugin-line-numbers": "^0.41.2",

0 commit comments

Comments
 (0)