2026-05-31 09:36:07 +08:00
|
|
|
import { defineConfig } from 'dumi'
|
|
|
|
|
import { resolve } from 'path'
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
themeConfig: {
|
|
|
|
|
name: 'Nova',
|
|
|
|
|
logo: false,
|
|
|
|
|
nav: [
|
|
|
|
|
{ title: '指南', link: '/guide' },
|
|
|
|
|
{ title: '组件', link: '/components' },
|
|
|
|
|
],
|
|
|
|
|
socialLinks: {
|
2026-05-31 09:36:23 +08:00
|
|
|
github: 'https://github.com/donghym/PikaUI',
|
2026-05-31 09:36:07 +08:00
|
|
|
},
|
2026-05-31 09:36:23 +08:00
|
|
|
sidebarGroupModePath: true,
|
2026-05-31 09:36:07 +08:00
|
|
|
},
|
|
|
|
|
apiParser: {},
|
|
|
|
|
resolve: {
|
|
|
|
|
docDirs: ['docs'],
|
|
|
|
|
entryFile: './src/index.ts',
|
|
|
|
|
atomDirs: [
|
2026-05-31 09:36:23 +08:00
|
|
|
{ type: 'component', dir: 'src/components/common' },
|
|
|
|
|
{ type: 'component', dir: 'src/components/layout' },
|
|
|
|
|
{ type: 'component', dir: 'src/components/nav' },
|
|
|
|
|
{ type: 'component', dir: 'src/components/entry' },
|
|
|
|
|
{ type: 'component', dir: 'src/components/feedback' },
|
|
|
|
|
{ type: 'component', dir: 'src/components/display' },
|
2026-05-31 09:36:07 +08:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
alias: {
|
2026-05-31 09:36:23 +08:00
|
|
|
'@Pika/ui': resolve(__dirname, 'src'),
|
2026-05-31 09:36:07 +08:00
|
|
|
},
|
|
|
|
|
outputPath: 'dist-docs',
|
|
|
|
|
})
|