/** @type {import('@docusaurus/types').DocusaurusConfig} */

module.exports = {
  title: 'Stencila Help',
  url: 'https://stencila.github.io/stencila',
  baseUrl: '/',
  onBrokenLinks: 'throw',
  onBrokenMarkdownLinks: 'warn',
  favicon: 'img/favicon.ico',
  organizationName: 'stencila',
  projectName: 'stencila',
  themeConfig: {
    navbar: {
      title: 'Help',
      logo: {
        alt: 'Stencila Logo',
        src: 'img/stencilaLogo.svg',
        srcDark: 'img/stencilaLogoDarkBG.svg',
      },
    },
    // algolia: {
    //   apiKey: 'YOUR_API_KEY',
    //   indexName: 'YOUR_INDEX_NAME',
    // },
    colorMode: {
      defaultMode: 'light',
      // Respect user's system preferences for `prefers-color-scheme` media-query
      respectPrefersColorScheme: true,
      switchConfig: {
        darkIcon: '🌙',
        darkIconStyle: {
          fontSize: '80%',
        },
        lightIcon: '☀️',
        lightIconStyle: {
          fontSize: '80%',
        },
      },
    },
    footer: {
      style: 'dark',
      links: [
        {
          title: 'Hub',
          items: [
            {
              label: 'Gallery',
              href: 'https://hub.stenci.la',
            },
            {
              label: 'Sign in',
              href: 'https://hub.stenci.la/me/signin/',
            },
            {
              label: 'Sign up',
              href: 'https://hub.stenci.la/me/signup/',
            },
          ],
        },
        {
          title: 'Download',
          items: [
            {
              label: 'CLI',
              href:
                'https://github.com/stencila/stencila/tree/master/cli#-install',
            },
            {
              label: 'Desktop',
              href:
                'https://github.com/stencila/stencila/tree/master/desktop#-install',
            },
          ],
        },
        {
          title: 'Tools & Plugins',
          items: [
            {
              label: 'Schema',
              href: 'https://github.com/stencila/schema#readme',
            },
            {
              label: 'Encoda',
              href: 'https://github.com/stencila/encoda#readme',
            },
            {
              label: 'Thema',
              href: 'https://github.com/stencila/thema#readme',
            },
          ],
        },
        {
          title: 'Community',
          items: [
            {
              label: 'Discord',
              href: 'https://discord.gg/pzUz8R3',
            },
            {
              label: 'GitHub',
              href: 'https://github.com/stencila/stencila/discussions',
            },
            {
              label: 'Twitter',
              href: 'https://twitter.com/stencila',
            },
          ],
        },
      ],
      copyright: `Copyright © ${new Date().getFullYear()} Stencila`,
    },
  },
  presets: [
    [
      '@docusaurus/preset-classic',
      {
        docs: {
          sidebarPath: require.resolve('./sidebars.js'),
          editUrl: 'https://github.com/stencila/stencila/edit/master/help/',
        },
        theme: {
          customCss: require.resolve('./src/css/custom.css'),
        },
      },
    ],
  ],
}

@@ -490,32 +490,330 @@
 .svg',%0A      %7D,%0A
+      items: %5B%0A        %7B to: 'docs/tutorials', label: 'Tutorials', position: 'left' %7D,%0A        %7B to: 'docs/guides', label: 'Guides', position: 'left' %7D,%0A        %7B to: 'docs/demos', label: 'Demos', position: 'left' %7D,%0A        %7B to: 'docs/reference', label: 'Reference', position: 'left' %7D,%0A      %5D,%0A
     %7D,%0A    // al

Add navbar items