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: 'swallow tech notes', tagline: 'AI・インフラ・開発の技術メモ', favicon: 'img/favicon.ico', future: { v4: true, }, // TODO: 本番URLに変更 url: 'https://docs.techswan.online', baseUrl: '/', organizationName: 'koide', projectName: 'note-articles', onBrokenLinks: 'warn', onBrokenMarkdownLinks: 'warn', i18n: { defaultLocale: 'ja', locales: ['ja'], }, presets: [ [ 'classic', { docs: { sidebarPath: './sidebars.ts', routeBasePath: '/', // docsをルートに editUrl: 'https://gitea.swallow.wjg.jp/koide/note-articles/src/branch/main/', }, blog: false, // ブログは無効化 theme: { customCss: './src/css/custom.css', }, } satisfies Preset.Options, ], ], themeConfig: { colorMode: { defaultMode: 'dark', respectPrefersColorScheme: true, }, navbar: { title: 'swallow tech notes', items: [ { type: 'docSidebar', sidebarId: 'docsSidebar', position: 'left', label: '記事一覧', }, { href: 'https://gitea.swallow.wjg.jp/koide/note-articles', label: 'Gitea', position: 'right', }, ], }, footer: { style: 'dark', links: [ { title: 'Links', items: [ { label: 'Gitea', href: 'https://gitea.swallow.wjg.jp/koide/note-articles', }, ], }, ], copyright: `© ${new Date().getFullYear()} swallow. Built with Docusaurus.`, }, prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, additionalLanguages: ['bash', 'json', 'yaml', 'python'], }, } satisfies Preset.ThemeConfig, }; export default config;