// @ts-check // Note: type annotations allow type checking and IDEs autocompletion const lightCodeTheme = require('prism-react-renderer/themes/github'); const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').Config} */ const config = { title: 'Emotions Blog', tagline: 'The chaotic world of EmotionChild', favicon: 'img/favicon.ico', // Set the production url of your site here url: 'https://blog.emotionchild.com', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: 'Emotions-stuff', // Usually your GitHub org/user name. projectName: 'Emotion-Blog', // Usually your repo name. onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', // Even if you don't use internalization, you can use this field to set useful // metadata like html lang. For example, if your site is Chinese, you may want // to replace "en" with "zh-Hans". i18n: { defaultLocale: 'en', locales: ['en'], }, presets: [ [ 'classic', /** @type {import('@docusaurus/preset-classic').Options} */ ({ docs: false, blog: { routeBasePath: '/', showReadingTime: true, readingTime: ({content, frontMatter, defaultReadingTime}) => frontMatter.hide_reading_time ? undefined : defaultReadingTime({content}), blogTitle: 'Emotion Blog', blogDescription: 'Here you can find blog posts about what Emotion has gotten up to', postsPerPage: 'ALL', feedOptions: { type: 'all', copyright: `Copyright © ${new Date().getFullYear()} EmotionChild.`, }, }, theme: { customCss: require.resolve('./src/css/custom.css'), }, }), ], ], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ // Replace with your project's social card navbar: { title: 'Emotions Blog', logo: { alt: 'My Site Logo', src: 'img/favicon.png', }, items: [ { href: 'https://github.com/Emotions-stuff/Emotion-Blog', label: 'GitHub', position: 'right', }, ], }, footer: { style: 'dark', links: [ { title: 'Community', items: [ { label: 'Discord', href: 'https://discord.com/invite/aAsGMFPfdu', }, { label: 'Twitter', href: 'https://twitter.com/Computergeex5', }, ], }, { title: 'More', items: [ { label: 'GitHub', href: 'https://github.com/Emotions-stuff/Emotion-Blog', }, ], }, ], copyright: `Copyright © ${new Date().getFullYear()} EmotionChild`, }, prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme, }, }), }; module.exports = config;