Skip to content

Commit

Permalink
Merge pull request #376 from CookbookDev/cookbook-onboard
Browse files Browse the repository at this point in the history
feat: Cookbook Onboard (AI Assistant) integration
  • Loading branch information
spacesailor24 authored Oct 23, 2024
2 parents ac24f97 + 4fea957 commit 352d105
Show file tree
Hide file tree
Showing 3 changed files with 2,709 additions and 31 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"packageManager": "[email protected]",
"dependencies": {
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6",
"@cookbookdev/docsbot": "^4.24.0",
"@docusaurus/core": "2.1.0",
"@docusaurus/plugin-google-analytics": "^2.1.0",
"@docusaurus/preset-classic": "2.1.0",
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.eyJzdWIiOiI2NzE4MjZhMThhZGI5YjAzMTQ1YWRiY2UiLCJpYXQiOjE3Mjk2MzYwMDEsImV4cCI6MjA0NTIxMjAwMX0.uaHypp9o7BjKRg40pttxo2WCKfeX8vDW7R-GMZaDuIw";
export default function SearchBarWrapper(props) {
return (
<>
<SearchBar {...props} />
<BrowserOnly>{() => <AskCookbook apiKey={COOKBOOK_PUBLIC_API_KEY} /> }</BrowserOnly>
</>
);
}
Loading

0 comments on commit 352d105

Please sign in to comment.