Skip to content

Commit

Permalink
doc: use docsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
erguotou520 committed Jan 2, 2025
1 parent 6ce9d9c commit 7346161
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/doc/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import cloudflare from '@astrojs/cloudflare';
// import starlightDocSearch from '@astrojs/starlight-docsearch';
import starlightDocSearch from '@astrojs/starlight-docsearch';

// https://astro.build/config
export default defineConfig({
Expand Down Expand Up @@ -77,13 +77,13 @@ export default defineConfig({
},
}
],
// plugins: [
// starlightDocSearch({
// appId: 'YOUR_APP_ID',
// apiKey: 'YOUR_SEARCH_API_KEY',
// indexName: 'YOUR_INDEX_NAME',
// }),
// ],
plugins: [
starlightDocSearch({
appId: 'H73GHR1OE5',
apiKey: process.env.DOCSEARCH_API_KEY,
indexName: 'igit-erguotou',
}),
],
}),
],
adapter: cloudflare({
Expand Down

0 comments on commit 7346161

Please sign in to comment.