import Image from 'next/image' import { Analytics } from '@vercel/analytics/react'; const github = 'https://github.com/arc53/DocsGPT'; import { useConfig, useTheme } from 'nextra-theme-docs'; import CuteLogo from './public/cute-docsgpt.png'; const Logo = ({ height, width }) => { const { theme } = useTheme(); return (
DocsGPT logo DocsGPT Docs
); }; const config = { docsRepositoryBase: `${github}/blob/main/docs`, chat: { link: 'https://discord.com/invite/n5BX8dh8rU', }, banner: { key: 'docs-launch', text: (
Welcome to the new DocsGPT 🦖 docs! 👋
), }, toc: { float: true, }, project: { link: github, }, darkMode: true, nextThemes: { defaultTheme: 'dark', }, primaryHue: { dark: 207, light: 212, }, footer: { text: `MIT ${new Date().getFullYear()} © DocsGPT`, }, logo() { return (
); }, useNextSeoProps() { return { titleTemplate: `%s - DocsGPT Documentation`, }; }, head() { const { frontMatter } = useConfig(); const { theme } = useTheme(); const title = frontMatter?.title || 'Chat with your data with DocsGPT'; const description = frontMatter?.description || 'Use DocsGPT to chat with your data. DocsGPT is a GPT powered chatbot that can answer questions about your data.' const image = '/cute-docsgpt.png'; const composedTitle = `${title} – DocsGPT Documentation`; return ( <> ); }, sidebar: { defaultMenuCollapseLevel: 1, titleComponent: ({ title, type }) => type === 'separator' ? (
{title}
) : ( <>{title} ), }, gitTimestamp: ({ timestamp }) => ( <>Last updated on {timestamp.toLocaleDateString()} ), }; export default config;