Skip to content

Commit

Permalink
docs: add chatbot as a page
Browse files Browse the repository at this point in the history
  • Loading branch information
ac10n committed Dec 5, 2023
1 parent 4ee8278 commit a0fe519
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ const sidebars = {
'operation_flow',
'rpc_nodes',
'web3js_taquito',
{
type: 'link',
label: 'TaquitoGPT Support Chatbot',
href: '/chatbot',
className: 'sidebarHeader',
description: 'Ask questions and get answers from the TaquitoGPT chatbot',
},
],
},
{
Expand Down
31 changes: 31 additions & 0 deletions website/src/pages/chatbot/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import React from 'react';

export default () => {
const context = useDocusaurusContext();
const { siteConfig } = context;
const { customFields } = siteConfig;

return (
<Layout
title={`Hello from ${siteConfig.title}`}
permalink="/"
description={customFields.description}
>
<div
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
}}>
<iframe
src="https://www.chatbase.co/chatbot-iframe/Cn650xmUdORPNUE8fcKlg"
width="90%"
style={{ height: '100%', minHeight: '700px' }}
frameborder="0"
></iframe>
</div>
</Layout>
);
}

0 comments on commit a0fe519

Please sign in to comment.