Skip to content

Commit

Permalink
feat: Cookbook Onboard integration
Browse files Browse the repository at this point in the history
  • Loading branch information
AE-0h authored and ClockRide committed Sep 26, 2024
1 parent 44f5bb2 commit 9d1db93
Show file tree
Hide file tree
Showing 3 changed files with 1,881 additions and 30 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"fmt-markdown": "markdownlint-cli2-fix 'docs/**/*.md' 'docs/**/*.mdx'"
},
"dependencies": {
"@cookbookdev/docsbot": "^4.21.23",
"@docusaurus/core": "3.5.2",
"@docusaurus/plugin-client-redirects": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
Expand Down
14 changes: 14 additions & 0 deletions src/theme/SearchBar/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';
import SearchBar from '@theme-original/SearchBar';
import AskCookbook from '@cookbookdev/docsbot/react'
import BrowserOnly from '@docusaurus/BrowserOnly';
/** It's a public API key, so it's safe to expose it here */
const COOKBOOK_PUBLIC_API_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NmIyODhmOTM3ZWIwYzRiMTVlZDM5ZmIiLCJpYXQiOjE3MjI5NzY1MDUsImV4cCI6MjAzODU1MjUwNX0.SI_acMGkzJiSDAsqzRmSCQTUEiIrt8L_i7lWnSRmkkA";
export default function SearchBarWrapper(props) {
return (
<>
<SearchBar {...props} />
<BrowserOnly>{() => <AskCookbook apiKey={COOKBOOK_PUBLIC_API_KEY} /> }</BrowserOnly>
</>
);
}
Loading

0 comments on commit 9d1db93

Please sign in to comment.