Skip to content

Commit

Permalink
Merge pull request #945 from CookbookDev/cookbook-onboard
Browse files Browse the repository at this point in the history
feat: Replaced Kapa AI with Cookbook Onboard (Web3 Focused AI Assistant & Playground)
  • Loading branch information
Aliserag authored Oct 30, 2024
2 parents 79d68c7 + 042ff3e commit ae24cd4
Show file tree
Hide file tree
Showing 4 changed files with 2,029 additions and 25 deletions.
16 changes: 0 additions & 16 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,26 +631,10 @@ const config = {
async: true,
onload: mixpanelOnLoad,
},
{
src: 'https://widget.kapa.ai/kapa-widget.bundle.js',
'data-website-id': '0f0b3ed1-7761-4986-851e-09336ea6ef1c',
'data-project-name': 'Flow',
'data-project-color': '#2E8555',
'data-project-logo': 'https://cryptologos.cc/logos/flow-flow-logo.png',
async: true,
},
{
src: `${baseUrl}hotjar.js`,
async: true,
},
{
src: 'https://widget.kapa.ai/kapa-widget.bundle.js',
'data-website-id': '0f0b3ed1-7761-4986-851e-09336ea6ef1c',
'data-project-name': 'Flow',
'data-project-color': '#2E8555',
'data-project-logo': 'https://cryptologos.cc/logos/flow-flow-logo.png',
async: true,
},
],
clientModules: [require.resolve('./src/modules/toolscards.ts')],
};
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"dependencies": {
"@code-hike/mdx": "^0.9.0",
"@cookbookdev/docsbot": "^4.24.0",
"@docusaurus/core": "^3.5.2",
"@docusaurus/plugin-client-redirects": "^3.5.2",
"@docusaurus/preset-classic": "^3.5.2",
Expand Down
17 changes: 17 additions & 0 deletions src/theme/SearchBar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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.eyJzdWIiOiI2NzEyYWRkYjk5YjBmNWViM2ZkODQxOGMiLCJpYXQiOjE3MjkyNzc0MDMsImV4cCI6MjA0NDg1MzQwM30._bhlmAnFpvxvkTV0PvU-6FwabhFOdSOx-qed2UIogpY';
export default function SearchBarWrapper(props) {
return (
<>
<SearchBar {...props} />
<BrowserOnly>
{() => <AskCookbook apiKey={COOKBOOK_PUBLIC_API_KEY} />}
</BrowserOnly>
</>
);
}
Loading

0 comments on commit ae24cd4

Please sign in to comment.