import { themes as prismThemes } from 'prism-react-renderer'; import type { Config } from '@docusaurus/types'; import type * as Preset from '@docusaurus/preset-classic'; const config: Config = { title: 'MoexVibe', tagline: 'Анализ ценных бумаг MOEX', favicon: 'img/favicon.ico', url: 'https://moexvibe.example.com', baseUrl: '/', onBrokenLinks: 'warn', onBrokenMarkdownLinks: 'warn', i18n: { defaultLocale: 'ru', locales: ['ru'], }, markdown: { mermaid: true, }, presets: [ [ 'classic', { docs: { routeBasePath: '/', sidebarPath: './sidebars.ts', editUrl: undefined, }, theme: { customCss: './src/css/custom.css', }, } satisfies Preset.Options, ], ], themes: ['@docusaurus/theme-mermaid'], themeConfig: { navbar: { title: 'MoexVibe', items: [ { type: 'docSidebar', sidebarId: 'docsSidebar', position: 'left', label: 'Документация', }, { href: 'https://github.com/ksv741/moex-vibe', label: 'GitHub', position: 'right', }, ], }, footer: { style: 'dark', copyright: `Copyright © ${new Date().getFullYear()} MoexVibe`, }, prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, }, } satisfies Preset.ThemeConfig, }; export default config;