Skip to content

Commit

Permalink
feat: remove petercat for its global styles will break website
Browse files Browse the repository at this point in the history
Signed-off-by: frank-zsy <[email protected]>
  • Loading branch information
frank-zsy committed Jan 17, 2025
1 parent a5eeece commit 6060dc1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/theme/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import React from 'react';
import Layout from '@theme-original/Layout';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import { translate } from '@docusaurus/Translate';
import { Assistant } from '@petercatai/assistant';
import '@petercatai/assistant/style';
// import { Assistant } from '@petercatai/assistant';

export default function LayoutWrapper(props: any): JSX.Element {
const { siteConfig } = useDocusaurusContext();
Expand All @@ -24,14 +23,14 @@ export default function LayoutWrapper(props: any): JSX.Element {
)
}
<Layout {...props} />
<Assistant
{/* <Assistant
token="7de1923b-00ad-4ea9-935b-e8d2eb5c6ecc"
apiDomain="https://api.petercat.ai"
assistantMeta={{
avatar: 'https://open-digger.cn/img/logo/logo-black-blue.png',
title: 'OpenDigger Assistant'
}}
helloMessage='我是 OpenDigger 问答小助手,很高兴跟你聊天~' />
helloMessage='我是 OpenDigger 问答小助手,很高兴跟你聊天~' /> */}
</>
);
}

0 comments on commit 6060dc1

Please sign in to comment.