Skip to content

Commit

Permalink
feat: Replaced Kapa AI with Cookbook Onboard integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ClockRide committed Oct 18, 2024
1 parent 2a0960f commit 159777a
Show file tree
Hide file tree
Showing 4 changed files with 2,063 additions and 34 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 159777a

Please sign in to comment.