import { defineConfig } from 'dumi';

export default defineConfig({
  title: 'wxcomponents',
  favicon:
    'https://avatars0.githubusercontent.com/u/70582319?s=400&u=88a26ccc6f3cf220b2ca8152a8f4eb43872b95e5&v=4',
  logo:
    'https://avatars0.githubusercontent.com/u/70582319?s=400&u=88a26ccc6f3cf220b2ca8152a8f4eb43872b95e5&v=4',
  outputPath: 'docs-dist',
  publicPath: '/wxcomponents/',
  base: '/wxcomponents/',
  theme: {
    '@c-primary': '#3f51b5',
  },
  locales: [
    ['zh-CN', '中文'],
    ['en-US', 'English'],
  ],
  extraBabelPlugins: [
    [
      'babel-plugin-import',
      {
        libraryName: '@material-ui/icons',
        // Use "'libraryDirectory': ''," if your bundler does not support ES modules
        libraryDirectory: 'esm',
        camel2DashComponentName: false,
      },
      'icons',
    ],
  ],
  // more config: https://d.umijs.org/config
});
