Skip to content

Commit 28b33c5

Browse files
Merge pull request #74 from CookbookDev/cookbook-integration
feat: Cookbook Onboard integration
2 parents 9e7535a + 13d38d1 commit 28b33c5

File tree

3 files changed

+1708
-11
lines changed

3 files changed

+1708
-11
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"write-heading-ids": "docusaurus write-heading-ids"
1515
},
1616
"dependencies": {
17+
"@cookbookdev/docsbot": "^4.21.5",
1718
"@docusaurus/core": "3.0.1",
1819
"@docusaurus/preset-classic": "3.0.1",
1920
"@mdx-js/react": "^3.0.0",

src/theme/SearchBar.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from "react";
2+
import AskCookbook from "@cookbookdev/docsbot/react";
3+
4+
// It's a public API key, so it's fine to just hardcode it here
5+
const COOKBOOK_API_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NWVmYWQ0ZGViNTUzM2NmODA2OTEzNTAiLCJpYXQiOjE3MTAyMDYyODUsImV4cCI6MjAyNTc4MjI4NX0.On3TXz2PyBdt-JnPaoPSm4MqbLJrliKCRPzjUClCGRM"
6+
7+
export default function SearchBarWrapper(props) {
8+
return (
9+
<>
10+
<AskCookbook apiKey={COOKBOOK_API_KEY} />
11+
</>
12+
);
13+
}

0 commit comments

Comments
 (0)