module.exports = {
  title: "Shrine",
  tagline: "File attachment toolkit for Ruby applications",
  url: "https://shrinerb.com",
  baseUrl: "/",
  organizationName: "shrinerb",
  projectName: "shrine",
  trailingSlash: false,
  favicon: "img/favicon.ico",
  onBrokenLinks: "log",
  markdown: {
    hooks: {
      onBrokenMarkdownLinks: "log"
    }
  },
  presets: [
    [
      "@docusaurus/preset-classic",
      {
        docs: {
          path: "../doc",
          showLastUpdateAuthor: true,
          showLastUpdateTime: true,
          editUrl: "https://github.com/shrinerb/shrine/edit/master/doc/",
          sidebarPath: "sidebars.json",
          sidebarCollapsed: false,
          breadcrumbs: false,
          rehypePlugins: [
            [require("rehype-pretty-code").default, { theme: "dracula-soft" }]
          ]
        },
        pages: {
          rehypePlugins: [
            [require("rehype-pretty-code").default, { theme: "dracula-soft" }]
          ]
        },
        theme: {
          customCss: "src/css/customTheme.css"
        }
      }
    ]
  ],
  plugins: [],
  themeConfig: {
    navbar: {
      title: "Shrine",
      style: "primary",
      logo: {
        src: "img/logo.png",
        alt: "Shrine logo"
      },
      items: [
        {
          to: "docs/getting-started",
          label: "Guides",
          position: "left"
        },
        {
          type: "docSidebar",
          sidebarId: "plugins",
          label: "Plugins",
          position: "left"
        },
        {
          type: "docSidebar",
          sidebarId: "external",
          label: "External",
          position: "left"
        },
        {
          type: "docSidebar",
          sidebarId: "release_notes",
          label: "Release Notes",
          position: "left"
        },
        {
          href: "https://github.com/shrinerb/shrine",
          label: "GitHub",
          position: "right"
        },
        {
          href: "https://github.com/shrinerb/shrine/discussions",
          label: "Discussion",
          position: "right"
        },
        {
          href: "https://github.com/shrinerb/shrine/wiki",
          label: "Wiki",
          position: "right"
        }
      ]
    },
    image: "img/logo.png",
    footer: {
      copyright: `Copyright © ${new Date().getFullYear()} Janko Marohnić`,
      style: "dark",
    },
    algolia: {
      appId: "KBFWBJ5DPX",
      apiKey: "f00673f90ed23135519e3c40bae05e17",
      contextualSearch: false,
      indexName: "shrinerb"
    }
  }
}
