|
| 1 | +import { defineConfig } from 'dumi'; |
| 2 | +export default defineConfig({ |
| 3 | + outputPath: 'docs-dist', |
| 4 | + themeConfig: ({ |
| 5 | + name: 'InulaUI', |
| 6 | + nav: [ |
| 7 | + { |
| 8 | + title: '指南', |
| 9 | + link: '/guide', |
| 10 | + }, |
| 11 | + { |
| 12 | + title: '组件', |
| 13 | + link: '/components/button', |
| 14 | + }, |
| 15 | + { |
| 16 | + title: '更新日志', |
| 17 | + link: '/changelog', |
| 18 | + }, |
| 19 | + { |
| 20 | + title: '贡献指南', |
| 21 | + link: '/contributing', |
| 22 | + }, |
| 23 | + ], |
| 24 | + sidebar: { |
| 25 | + '/components': [ |
| 26 | + { |
| 27 | + title: '通用', |
| 28 | + children: [ |
| 29 | + { title: 'Button 按钮', link: '/components/button' }, |
| 30 | + { title: 'Icon 图标', link: '/components/icon' }, |
| 31 | + ], |
| 32 | + }, |
| 33 | + { |
| 34 | + title: '导航', |
| 35 | + children: [ |
| 36 | + { title: 'Tabs 标签页', link: '/components/tabs' }, |
| 37 | + ], |
| 38 | + }, |
| 39 | + { |
| 40 | + title: '数据录入', |
| 41 | + children: [ |
| 42 | + { title: 'Checkbox 多选框', link: '/components/checkbox' }, |
| 43 | + { title: 'DataPicker 日期选择器', link: '/components/datapicker' }, |
| 44 | + { title: 'Form 表单', link: '/components/form' }, |
| 45 | + { title: 'Input 输入框', link: '/components/input' }, |
| 46 | + { title: 'Radio 单选框', link: '/components/radio' }, |
| 47 | + { title: 'Select 选择器', link: '/components/select' }, |
| 48 | + { title: 'Switch 开关', link: '/components/switch' }, |
| 49 | + ], |
| 50 | + }, |
| 51 | + { |
| 52 | + title: '数据展示', |
| 53 | + children: [ |
| 54 | + { title: 'Card 卡片', link: '/components/card' }, |
| 55 | + { title: 'Tooltip 文字提示', link: '/components/tooltip' }, |
| 56 | + { title: 'Tag 标签', link: '/components/tag' }, |
| 57 | + { title: 'Tree 树形控件', link: '/components/tree' }, |
| 58 | + ], |
| 59 | + }, |
| 60 | + { |
| 61 | + title: '反馈', |
| 62 | + children: [ |
| 63 | + { title: 'Modal 对话框', link: '/components/dialog' }, |
| 64 | + { title: 'Spin 加载中', link: '/components/spin' }, |
| 65 | + { title: 'Notification 通知提示框', link: '/components/notification' }, |
| 66 | + ], |
| 67 | + }, |
| 68 | + ], |
| 69 | + }, |
| 70 | + }), |
| 71 | +}); |
0 commit comments