diff --git a/docusaurus.config.js b/docusaurus.config.js index 7bd73720..68d52b0f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -5,8 +5,6 @@ // See: https://docusaurus.io/docs/api/docusaurus-config import 'dotenv/config'; -import dotenv from 'dotenv'; -dotenv.config(); import {themes as prismThemes} from 'prism-react-renderer'; import {createNavItems} from './src/_utils/utils.js'; diff --git a/src/theme/Navbar/AIButton/index.js b/src/theme/Navbar/AIButton/index.js index dd2fb383..d5094aae 100644 --- a/src/theme/Navbar/AIButton/index.js +++ b/src/theme/Navbar/AIButton/index.js @@ -1,50 +1,50 @@ -import React, {useEffect, useState} from 'react'; -import {MendableFloatingButton} from "@mendable/search" -import {useColorMode} from "@docusaurus/theme-common"; -import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; +// import React, {useEffect, useState} from 'react'; +// import {MendableFloatingButton} from "@mendable/search" +// import {useColorMode} from "@docusaurus/theme-common"; +// import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; -export default function AIButton() { - const { - siteConfig: {customFields}, - } = useDocusaurusContext(); - const {keys} = customFields; +// export default function AIButton() { +// const { +// siteConfig: {customFields}, +// } = useDocusaurusContext(); +// const {keys} = customFields; - const {colorMode} = useColorMode(); - const [style, setStyle] = useState({darkMode: colorMode === 'dark', accentColor: colorMode === 'dark' ? "#fff" : '#000'}) +// const ANON_KEY = keys.mendable;const {colorMode} = useColorMode(); +// const [style, setStyle] = useState({darkMode: colorMode === 'dark', accentColor: colorMode === 'dark' ? "#fff" : '#000'}) - const floatingButtonStyle = { - color: "var(--bs-body-color)", - backgroundColor: "var(--bs-body-bg)", - } - const ANON_KEY = keys.mendable; +// const floatingButtonStyle = { +// color: "var(--bs-body-color)", +// backgroundColor: "var(--bs-body-bg)", +// } +// - const icon = ( - - - - - - - ) +// const icon = ( +// +// +// +// +// +// +// ) - useEffect(() => { - setStyle({darkMode: colorMode === 'dark', accentColor: colorMode === 'dark' ? "#fff" : '#000'}) - }, [colorMode]); +// useEffect(() => { +// setStyle({darkMode: colorMode === 'dark', accentColor: colorMode === 'dark' ? "#fff" : '#000'}) +// }, [colorMode]); - return ( - - ); -} +// return ( +// +// ); +// }