Skip to content

Commit

Permalink
docs: add docsearch (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfrisbee authored Jul 19, 2023
1 parent 0ff6ed9 commit b41fb3d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/website/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import dotenv from "dotenv";
import container from "markdown-it-container";
import {
defineConfig,
type DefaultTheme,
type HeadConfig,
type TransformContext,
} from "vitepress";
Expand Down Expand Up @@ -162,7 +163,12 @@ export default defineConfig({
// "/docs/:path",
// text: "Edit this page",
// },
algolia: getAlgoliaConfig(process.env),
search: {
provider: "algolia",
options: getAlgoliaConfig(
process.env
) as DefaultTheme.AlgoliaSearchOptions,
},
socialLinks: [
{ icon: "github", link: "https://github.com/TypeCellOS/BlockNote" },
// { icon: "twitter", link: "https://twitter.com/TypeCellOS" },
Expand Down

1 comment on commit b41fb3d

@vercel
Copy link

@vercel vercel bot commented on b41fb3d Jul 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.