|
1 | | - |
2 | | -import { defineConfig } from 'vitepress' |
| 1 | +import { defineConfig } from "vitepress"; |
3 | 2 |
|
4 | 3 | export default defineConfig({ |
5 | 4 | description: "A UI library for Compose MultiPlatform", |
6 | | - lang: 'en_US', |
| 5 | + lang: "en_US", |
7 | 6 | themeConfig: { |
8 | | - |
9 | | - socialLinks: [ |
10 | | - { icon: 'github', link: 'https://github.com/compose-miuix-ui/miuix' } |
11 | | - ], |
12 | | - |
13 | | - editLink: { |
14 | | - pattern: 'https://github.com/compose-miuix-ui/miuix/edit/main/docs/:path', |
15 | | - text: 'Edit this page on GitHub' |
| 7 | + outline: { |
| 8 | + level: [2, 4], |
16 | 9 | }, |
17 | 10 |
|
18 | 11 | footer: { |
19 | | - message: 'Released under the Apache-2.0 License', |
20 | | - copyright: `Copyright © 2024-${new Date().getFullYear()} compose-miuix-ui` |
| 12 | + message: "Released under the Apache-2.0 License", |
| 13 | + copyright: `Copyright © 2024-${new Date().getFullYear()} compose-miuix-ui`, |
21 | 14 | }, |
22 | 15 |
|
23 | 16 | nav: [ |
24 | | - { text: 'Home', link: '/' }, |
25 | | - { text: 'Getting Started', link: '/guide/getting-started' }, |
26 | | - { text: 'Components', link: '/components/' }, |
| 17 | + { text: "Home", link: "/" }, |
| 18 | + { text: "Getting Started", link: "/guide/getting-started" }, |
| 19 | + { text: "Components", link: "/components/" }, |
27 | 20 | ], |
28 | 21 |
|
29 | 22 | sidebar: { |
30 | | - '/guide/': [ |
| 23 | + "/guide/": [ |
31 | 24 | { |
32 | | - text: 'Introduction', |
| 25 | + text: "Introduction", |
33 | 26 | collapsed: false, |
34 | | - items: [ |
35 | | - { text: 'Getting Started', link: '/guide/getting-started' }, |
36 | | - ] |
| 27 | + items: [{ text: "Getting Started", link: "/guide/getting-started" }], |
37 | 28 | }, |
38 | 29 | { |
39 | | - text: 'Advanced', |
| 30 | + text: "Advanced", |
40 | 31 | collapsed: false, |
41 | 32 | items: [ |
42 | | - { text: 'Theme System', link: '/guide/theme' }, |
43 | | - { text: 'Color System', link: '/guide/colors' }, |
44 | | - { text: 'Text Styles', link: '/guide/textstyles' }, |
45 | | - { text: 'Icon System', link: '/guide/icons' }, |
46 | | - { text: 'Utility Functions', link: '/guide/utils' }, |
47 | | - { text: 'Platform Support', link: '/guide/multiplatform' }, |
48 | | - { text: 'Best Practices', link: '/guide/best-practices' }, |
49 | | - ] |
50 | | - } |
| 33 | + { text: "Theme System", link: "/guide/theme" }, |
| 34 | + { text: "Color System", link: "/guide/colors" }, |
| 35 | + { text: "Text Styles", link: "/guide/textstyles" }, |
| 36 | + { text: "Icon System", link: "/guide/icons" }, |
| 37 | + { text: "Utility Functions", link: "/guide/utils" }, |
| 38 | + { text: "Platform Support", link: "/guide/multiplatform" }, |
| 39 | + { text: "Best Practices", link: "/guide/best-practices" }, |
| 40 | + ], |
| 41 | + }, |
51 | 42 | ], |
52 | | - '/components/': [ |
| 43 | + "/components/": [ |
53 | 44 | { |
54 | | - text: 'Components', |
| 45 | + text: "Components", |
55 | 46 | collapsed: false, |
56 | | - items: [ |
57 | | - { text: 'Overview', link: '/components/' }, |
58 | | - ] |
| 47 | + items: [{ text: "Overview", link: "/components/" }], |
59 | 48 | }, |
60 | 49 | { |
61 | | - text: 'Scaffold Components', |
| 50 | + text: "Scaffold Components", |
62 | 51 | collapsed: false, |
63 | | - items: [ |
64 | | - { text: 'Scaffold', link: '/components/scaffold' }, |
65 | | - ] |
| 52 | + items: [{ text: "Scaffold", link: "/components/scaffold" }], |
66 | 53 | }, |
67 | 54 | { |
68 | | - text: 'Basic Components', |
| 55 | + text: "Basic Components", |
69 | 56 | collapsed: false, |
70 | 57 | items: [ |
71 | | - { text: 'Surface', link: '/components/surface' }, |
72 | | - { text: 'TopAppBar', link: '/components/topappbar' }, |
73 | | - { text: 'NavigationBar', link: '/components/navigationbar' }, |
74 | | - { text: 'TabRow', link: '/components/tabrow' }, |
75 | | - { text: 'Card', link: '/components/card' }, |
76 | | - { text: 'BasicComponent', link: '/components/basiccomponent' }, |
77 | | - { text: 'Button', link: '/components/button' }, |
78 | | - { text: 'IconButton', link: '/components/iconbutton' }, |
79 | | - { text: 'Text', link: '/components/text' }, |
80 | | - { text: 'SmallTitle', link: '/components/smalltitle' }, |
81 | | - { text: 'TextField', link: '/components/textfield' }, |
82 | | - { text: 'Switch', link: '/components/switch' }, |
83 | | - { text: 'Checkbox', link: '/components/checkbox' }, |
84 | | - { text: 'Slider', link: '/components/slider' }, |
85 | | - { text: 'ProgressIndicator', link: '/components/progressindicator' }, |
86 | | - { text: 'Icon', link: '/components/icon' }, |
87 | | - { text: 'FloatingActionButton', link: '/components/floatingactionbutton' }, |
88 | | - { text: 'FloatingToolbar', link: '/components/floatingtoolbar' }, |
89 | | - { text: 'Divider', link: '/components/divider' }, |
90 | | - { text: 'PullToRefresh', link: '/components/pulltorefresh' }, |
91 | | - { text: 'SearchBar', link: '/components/searchbar' }, |
92 | | - { text: 'ColorPalette', link: '/components/colorpalette' }, |
93 | | - { text: 'ColorPicker', link: '/components/colorpicker' }, |
94 | | - { text: 'ListPopup', link: '/components/listpopup' }, |
95 | | - ] |
| 58 | + { text: "Surface", link: "/components/surface" }, |
| 59 | + { text: "TopAppBar", link: "/components/topappbar" }, |
| 60 | + { text: "NavigationBar", link: "/components/navigationbar" }, |
| 61 | + { text: "TabRow", link: "/components/tabrow" }, |
| 62 | + { text: "Card", link: "/components/card" }, |
| 63 | + { text: "BasicComponent", link: "/components/basiccomponent" }, |
| 64 | + { text: "Button", link: "/components/button" }, |
| 65 | + { text: "IconButton", link: "/components/iconbutton" }, |
| 66 | + { text: "Text", link: "/components/text" }, |
| 67 | + { text: "SmallTitle", link: "/components/smalltitle" }, |
| 68 | + { text: "TextField", link: "/components/textfield" }, |
| 69 | + { text: "Switch", link: "/components/switch" }, |
| 70 | + { text: "Checkbox", link: "/components/checkbox" }, |
| 71 | + { text: "Slider", link: "/components/slider" }, |
| 72 | + { text: "ProgressIndicator", link: "/components/progressindicator", }, |
| 73 | + { text: "Icon", link: "/components/icon" }, |
| 74 | + { text: "FloatingActionButton", link: "/components/floatingactionbutton", }, |
| 75 | + { text: "FloatingToolbar", link: "/components/floatingtoolbar" }, |
| 76 | + { text: "Divider", link: "/components/divider" }, |
| 77 | + { text: "PullToRefresh", link: "/components/pulltorefresh" }, |
| 78 | + { text: "SearchBar", link: "/components/searchbar" }, |
| 79 | + { text: "ColorPalette", link: "/components/colorpalette" }, |
| 80 | + { text: "ColorPicker", link: "/components/colorpicker" }, |
| 81 | + { text: "ListPopup", link: "/components/listpopup" }, |
| 82 | + ], |
96 | 83 | }, |
97 | 84 | { |
98 | | - text: 'Extended Components', |
| 85 | + text: "Extended Components", |
99 | 86 | collapsed: false, |
100 | 87 | items: [ |
101 | | - { text: 'SuperArrow', link: '/components/superarrow' }, |
102 | | - { text: 'SuperSwitch', link: '/components/superswitch' }, |
103 | | - { text: 'SuperCheckbox', link: '/components/supercheckbox' }, |
104 | | - { text: 'SuperDropdown', link: '/components/superdropdown' }, |
105 | | - { text: 'SuperSpinner', link: '/components/superspinner' }, |
106 | | - { text: 'SuperDialog', link: '/components/superdialog' }, |
107 | | - { text: 'SuperBottomSheet', link: '/components/superbottomsheet' }, |
108 | | - ] |
| 88 | + { text: "SuperArrow", link: "/components/superarrow" }, |
| 89 | + { text: "SuperSwitch", link: "/components/superswitch" }, |
| 90 | + { text: "SuperCheckbox", link: "/components/supercheckbox" }, |
| 91 | + { text: "SuperDropdown", link: "/components/superdropdown" }, |
| 92 | + { text: "SuperSpinner", link: "/components/superspinner" }, |
| 93 | + { text: "SuperDialog", link: "/components/superdialog" }, |
| 94 | + { text: "SuperBottomSheet", link: "/components/superbottomsheet" }, |
| 95 | + ], |
109 | 96 | }, |
110 | | - ] |
| 97 | + ], |
111 | 98 | }, |
112 | | - } |
113 | | -}) |
| 99 | + }, |
| 100 | +}); |
0 commit comments