File tree 3 files changed +3098
-79
lines changed
3 files changed +3098
-79
lines changed Original file line number Diff line number Diff line change 13
13
"version" : " yarn version::stables && ./scripts/cut_version.sh"
14
14
},
15
15
"dependencies" : {
16
+ "@cookbookdev/docsbot" : " ^4.24.9" ,
16
17
"@docusaurus/core" : " ^3.5.2" ,
17
18
"@docusaurus/preset-classic" : " ^3.5.2" ,
18
19
"@easyops-cn/docusaurus-search-local" : " ^0.35.0" ,
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import SearchBar from '@theme-original/SearchBar' ;
3
+ import AskCookbook from '@cookbookdev/docsbot/react'
4
+ import BrowserOnly from '@docusaurus/BrowserOnly' ;
5
+ /** It's a public API key, so it's safe to expose it here */
6
+ const COOKBOOK_PUBLIC_API_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NzVhMGVkODQ4MGI5OThmNzlhNjNhOTciLCJpYXQiOjE3MzM5NTUyODgsImV4cCI6MjA0OTUzMTI4OH0.NzQlH2sfhJkjvnYxoaRgSY6nRyNClxHg57n3-JueN9Q" ;
7
+ export default function SearchBarWrapper ( props ) {
8
+ return (
9
+ < >
10
+ < SearchBar { ...props } />
11
+ < BrowserOnly > { ( ) => < AskCookbook apiKey = { COOKBOOK_PUBLIC_API_KEY } /> } </ BrowserOnly >
12
+ </ >
13
+ ) ;
14
+ }
You can’t perform that action at this time.
0 commit comments