File tree Expand file tree Collapse file tree 6 files changed +12
-36
lines changed
Expand file tree Collapse file tree 6 files changed +12
-36
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default async function Page(props: { params: Promise<{ slug?: string[] }>
1111 const MDX = page . data . body ;
1212
1313 return (
14- < DocsPage toc = { page . data . toc } tableOfContent = { { style : "clerk" } } full = { page . data . full } >
14+ < DocsPage toc = { page . data . toc } tableOfContent = { { style : "clerk" } } full = { page . data . full } >
1515 < DocsTitle > { page . data . title } </ DocsTitle >
1616 < DocsDescription > { page . data . description } </ DocsDescription >
1717 < DocsBody >
Original file line number Diff line number Diff line change @@ -13,21 +13,9 @@ The Helper Client SDK provides a comprehensive JavaScript/TypeScript library for
1313## Installation
1414
1515<Tabs groupId = " install" items = { [" npm" , " yarn" , " pnpm" ]} persist >
16- <Tab value = " npm" >
17- ``` bash
18- npm install @helper/client
19- ```
20- </Tab >
21- <Tab value = " yarn" >
22- ``` bash
23- yarn add @helper/client
24- ```
25- </Tab >
26- <Tab value = " pnpm" >
27- ``` bash
28- pnpm add @helper/client
29- ```
30- </Tab >
16+ <Tab value = " npm" >``` bash npm install @helper/client ``` </Tab >
17+ <Tab value = " yarn" >``` bash yarn add @helper/client ``` </Tab >
18+ <Tab value = " pnpm" >``` bash pnpm add @helper/client ``` </Tab >
3119</Tabs >
3220
3321## Setup
Original file line number Diff line number Diff line change @@ -13,21 +13,9 @@ The Helper React package provides a collection of React hooks and components tha
1313## Installation
1414
1515<Tabs groupId = " install" items = { [" npm" , " yarn" , " pnpm" ]} persist >
16- <Tab value = " npm" >
17- ``` bash
18- npm install @helper/react @ai-sdk/react
19- ```
20- </Tab >
21- <Tab value = " yarn" >
22- ``` bash
23- yarn add @helper/react @ai-sdk/react
24- ```
25- </Tab >
26- <Tab value = " pnpm" >
27- ``` bash
28- pnpm add @helper/react @ai-sdk/react
29- ```
30- </Tab >
16+ <Tab value = " npm" >``` bash npm install @helper/react @ai-sdk/react ``` </Tab >
17+ <Tab value = " yarn" >``` bash yarn add @helper/react @ai-sdk/react ``` </Tab >
18+ <Tab value = " pnpm" >``` bash pnpm add @helper/react @ai-sdk/react ``` </Tab >
3119</Tabs >
3220
3321## Setup
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ You can pass additional customer information to Helper through metadata:
4040
4141Example metadata configuration:
4242
43- ``` ts title="metadata.ts"
43+ ``` ts title="metadata.ts"
4444metadata : {
4545 value : 500 , // Customer value in your currency
4646 name : " Jane Smith" ,
@@ -71,7 +71,7 @@ The `show_toggle_button` option allows you to control the visibility of the togg
7171
7272Example usage:
7373
74- ``` ts title="example.ts"
74+ ``` ts title="example.ts"
7575// Initialize widget with toggle button always visible
7676HelperWidget .init ({
7777 mailbox_slug: " your-mailbox" ,
Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ If you're using [Turbo](https://turbo.hotwired.dev/) with Rails or other framewo
1717
18181 . Add the ` data-delay-init ` attribute to the widget script tag:
1919
20- ``` html title="index.html"
20+ ``` html title="index.html"
2121<script src =" https://<your-helper-host>/widget/sdk.js" data-delay-init ></script >
2222```
2323
24242 . Handle page navigation events to properly initialize and destroy the widget:
2525
26- ``` ts title="metadata.ts"
26+ ``` ts title="metadata.ts"
2727const config = {
2828 // ... your configurations
2929};
Original file line number Diff line number Diff line change 1+ import { rehypeCode } from "fumadocs-core/mdx-plugins" ;
12import { remarkInstall } from "fumadocs-docgen" ;
23import { defineConfig , defineDocs } from "fumadocs-mdx/config" ;
3- import { rehypeCode } from 'fumadocs-core/mdx-plugins' ;
44
55export const docs = defineDocs ( {
66 dir : "content/docs" ,
You can’t perform that action at this time.
0 commit comments