text: // @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: 'Obsidian AnkiBridge',
    tagline: 'Yet Another Anki Bridge.',
    url: 'https://JeppeKlitgaard.github.io',
    baseUrl: '/ObsidianAnkiBridge/',
    trailingSlash: false,
    onBrokenLinks: 'throw',
    onBrokenMarkdownLinks: 'warn',
    favicon: 'img/favicon.ico',
    organizationName: 'JeppeKlitgaard', // Usually your GitHub org/user name.
    projectName: 'ObsidianAnkiBridge', // Usually your repo name.
  
    presets: [
      [
        'classic',
        /** @type {import('@docusaurus/preset-classic').Options} */
        ({
          docs: {
            sidebarPath: require.resolve('./sidebars.js'),
            // Please change this to your repo.
            editUrl: 'https://github.com/JeppeKlitgaard/ObsidianAnkiBridge/tree/master/docs',
            routeBasePath: '/',
          },
          blog: false,
          // blog: {
          //   showReadingTime: true,
          //   // Please change this to your repo.
          //   editUrl:
          //     'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
          // },
          theme: {
            customCss: require.resolve('./src/css/custom.css'),
          },
        }),
      ],
    ],
  
    themeConfig:
      /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
      ({
        colorMode: {
          defaultMode: "dark",
          respectPrefersColorScheme: true,
        },
        navbar: {
          title: 'AnkiBridge',
          // logo: {
          //   alt: 'AnkiBridge Logo',
          //   src: 'img/logo.svg',
          // },
          items: [
            {
              type: 'doc',
              docId: 'intro',
              position: 'left',
              label: 'Documentation',
            },
            // {to: '/blog', label: 'Blog', position: 'left'},
            // {
            //   href: 'https://github.com/facebook/docusaurus',
            //   label: 'GitHub',
            //   position: 'right',
            // },
          ],
        },
        footer: {
          style: 'dark',
          links: [
            {
              title: 'Community',
              items: [
              ],
            },
            {
              title: 'More',
              items: [
                {
                  label: 'GitHub',
                  href: 'https://github.com/JeppeKlitgaard/ObsidianAnkiBridge',
                },
              ],
            },
          ],
          copyright: `Copyright © ${new Date().getFullYear()} Jeppe Klitgaard and contributors.`,
        },
        prism: {
          theme: lightCodeTheme,
          darkTheme: darkCodeTheme,
        },
      }),
  };
  
  module.exports = config;
  