Skip to content

Commit

Permalink
mdx example
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelglass committed Mar 1, 2024
1 parent 3fb54ef commit 02a91e3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@ import { PageTitle } from "../components/PageTitle";
import { PageContent } from "../components/PageContent";
import { packageUrls } from "../constants";

export const content = `

<PageTitle pretitle="Introduction" title="Getting started" />

<PageContent>
This is the official JavaScript SDK to communicate with conversational bots created using NLX Dialog Studio. It contains the following packages:
* [@nlxai/chat-widget](${packageUrls.chatWidget}): the official out-of-the-box, themeable NLX widget.
* [@nlxai/chat-react](${packageUrls.chatReact}): React custom hook for building chat widgets.
* [@nlxai/chat-preact](${packageUrls.chatPreact}): Preact custom hook for building chat widgets.
* [@nlxai/chat-core](${packageUrls.chatCore}): vanilla JavaScript SDK for creating fully custom chat widgets.
* [@nlxai/voice-compass](${packageUrls.voiceCompass}): multimodal capabilities.
`;

export const GettingStarted = () => {
return (
<>
<PageTitle pretitle="Introduction" title="Getting started" />
<PageContent md={content} />
</>
);
};
</PageContent>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { PageTitle } from "../components/PageTitle";
import { PageContent } from "../components/PageContent";
import { umdScriptTags, packageUrls } from "../constants";

export const content = `

<PageTitle pretitle="Install" title="Installation" />
<PageContent>
SDK packages can be installed as follows:

## Using script tags
Expand Down Expand Up @@ -48,13 +50,4 @@ npm install @nlxai/chat-core
# Voice Compass
npm install @nlxai/voice-compass
~~~
`;

export const Installation = () => {
return (
<>
<PageTitle pretitle="Install" title="Installation" />
<PageContent md={content} />
</>
);
};
</PageContent>
5 changes: 5 additions & 0 deletions packages/website/src/content/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<PageContent>
## hello, world!

this isn't a header: hi hi
</PageContent>

0 comments on commit 02a91e3

Please sign in to comment.