forked from kingzamzon/docs
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #376 from CookbookDev/cookbook-onboard
feat: Cookbook Onboard (AI Assistant) integration
- Loading branch information
Showing
3 changed files
with
2,709 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
</> | ||
); | ||
} |
Oops, something went wrong.