Skip to content

Commit

Permalink
feat: Cookbook Onboard integration
Browse files Browse the repository at this point in the history
fixup of prev commit
  • Loading branch information
ClockRide committed Jul 29, 2024
1 parent c7f3925 commit 4ecfc9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@astrojs/partytown": "^2.0.4",
"@astrojs/prism": "^3.0.0",
"@astrojs/tailwind": "^5.1.0",
"@cookbookdev/docsbot": "^4.21.5",
"@nanostores/preact": "^0.3.1",
"astro-auto-import": "^0.4.2",
"astro-expressive-code": "^0.35.3",
Expand Down
7 changes: 7 additions & 0 deletions src/layouts/MainLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as CONFIG from "../config"
import Footer from "~/components/Footer/Footer.astro"
import { changeLanguage } from "i18next"
import { ViewTransitions } from "astro:transitions"
import AskCookbook from "@cookbookdev/docsbot/react"
const { content = {}, frontmatter } = Astro.props
// Astro.props?.headings is for .mdx pages, Astro.props?.content?.astro.headings is for .md pages
Expand Down Expand Up @@ -248,5 +249,11 @@ changeLanguage(content.lang)
import("../scripts/link-to-wallet.ts")
}
</script> -->

<!-- Cookbook Onboard (AI Assistant). API key is public so it's fine to just hardcode it here. -->
<AskCookbook
apiKey="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NjhkNGNkNDQ5ODQ2YjcxMDdjYjY4MDgiLCJpYXQiOjE3MjA1MzYyNzYsImV4cCI6MjAzNjExMjI3Nn0.ZQ6KvZ4lRGTQUyleQFS0okdNOhZI_wsv2v9YFn2t6Pw"
client:only="react"
/>
</body>
</html>

0 comments on commit 4ecfc9e

Please sign in to comment.