Skip to content

Commit b41fb3d

Browse files
docs: add docsearch (#242)
1 parent 0ff6ed9 commit b41fb3d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/website/docs/.vitepress/config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import dotenv from "dotenv";
44
import container from "markdown-it-container";
55
import {
66
defineConfig,
7+
type DefaultTheme,
78
type HeadConfig,
89
type TransformContext,
910
} from "vitepress";
@@ -162,7 +163,12 @@ export default defineConfig({
162163
// "/docs/:path",
163164
// text: "Edit this page",
164165
// },
165-
algolia: getAlgoliaConfig(process.env),
166+
search: {
167+
provider: "algolia",
168+
options: getAlgoliaConfig(
169+
process.env
170+
) as DefaultTheme.AlgoliaSearchOptions,
171+
},
166172
socialLinks: [
167173
{ icon: "github", link: "https://github.com/TypeCellOS/BlockNote" },
168174
// { icon: "twitter", link: "https://twitter.com/TypeCellOS" },

0 commit comments

Comments
 (0)