// more config: https://d.umijs.org/config
import { defineConfig } from 'dumi';

const name = 'issues-helper';

export default defineConfig({
  title: 'Issues Helper',
  mode: 'site',
  favicon: 'https://avatars1.githubusercontent.com/u/73879334?s=200&v=4',
  logo: 'https://avatars1.githubusercontent.com/u/73879334?s=200&v=4',
  exportStatic: {},
  ssr: {},
  outputPath: '../docs-dist',
  resolve: {
    includes: ['./docs'],
  },
  hash: true,
  base: `/${name}/`,
  publicPath: `/${name}/`,
  locales: [
    ['zh-CN', '中文'],
    ['en-US', 'English'],
  ],
  theme: {
    '@c-primary': '#1890ff',
  },
  navs: {
    'zh-CN': [
      { title: '指 南', path: '/guide' },
      { title: '基 础', path: '/base' },
      { title: '进 阶', path: '/advanced' },
      { title: '更新日志', path: '/changelog' },
      { title: '国内镜像', path: 'https://issues-helper.gitee.io' },
      { title: 'GitHub', path: 'https://github.com/actions-cool/issues-helper' },
    ],
    'en-US': [
      { title: 'Guide', path: '/en-US/guide' },
      { title: 'Base', path: '/en-US/base' },
      { title: 'Advanced', path: '/en-US/advanced' },
      { title: 'Changelog', path: '/en-US/changelog' },
      { title: 'GitHub', path: 'https://github.com/actions-cool/issues-helper' },
    ],
  },
  menus: {
    '/guide': [
      {
        title: '🍭 介 绍',
        children: ['/guide/index', '/guide/start'],
      },
      {
        title: '🎁 参 考',
        path: '/guide/ref',
      },
      {
        title: '🎗 记 录',
        path: '/guide/note',
      },
      {
        title: '💬 FAQ',
        path: '/guide/faq',
      },
    ],
    '/en-US/guide': [
      {
        title: '🍭 Guide',
        children: ['/guide/index', '/guide/start'],
      },
      {
        title: '🎁 Reference',
        path: '/guide/ref',
      },
      {
        title: '🎗 Note',
        path: '/guide/note',
      },
      {
        title: '💬 FAQ',
        path: '/guide/faq',
      },
    ],
  },
});
