@@ -35,84 +35,97 @@ export default defineConfig({
3535 editLink : {
3636 pattern : 'https://github.com/barbapapazes-sponsors/vue-ui/edit/main/src/:path' ,
3737 } ,
38- sidebar : [
38+ nav : [
3939 {
4040 text : 'Usage' ,
41- items : [
42- {
43- text : 'About' ,
44- link : '/usage/about' ,
45- } ,
46- {
47- text : 'Installation' ,
48- link : '/usage/installation' ,
49- } ,
50- // Move the Inertia page to the installation one and use div to make it change depending on the selected tool
51- {
52- text : 'Inertia' ,
53- link : '/usage/inertia' ,
54- } ,
55- ] ,
41+ link : '/installation' ,
5642 } ,
5743 {
58- text : 'Components' ,
59- items : [
60- ...baseComponentLibrary . componentsList . map ( component => ( {
61- text : component . name ,
62- link : withTrailingSlash ( component . slug ) ,
63- } ) ) ,
64- ] ,
44+ text : 'Base Components' ,
45+ link : '/base-components/components/' ,
6546 } ,
6647 {
67- text : 'Composables' ,
68- items : [
69- ...baseComponentLibrary . composablesList . map ( composable => ( {
70- text : composable . name ,
71- link : withTrailingSlash ( composable . slug ) ,
72- } ) ) ,
73- ] ,
74- } ,
75- {
76- text : 'Keys' ,
77- collapsed : true ,
78- items : [
79- ...baseComponentLibrary . keysList . map ( key => ( {
80- text : key . name ,
81- link : withTrailingSlash ( key . slug ) ,
82- } ) ) ,
83- ] ,
84- } ,
85- {
86- text : 'Utils' ,
87- collapsed : true ,
88- items : [
89- ...baseComponentLibrary . utilsList . map ( utils => ( {
90- text : utils . name ,
91- link : withTrailingSlash ( utils . slug ) ,
92- } ) ) ,
93- ] ,
94- } ,
95- {
96- text : 'Types' ,
97- collapsed : true ,
98- items : [
99- ...baseComponentLibrary . typesList . map ( type => ( {
100- text : type . name ,
101- link : withTrailingSlash ( type . slug ) ,
102- } ) ) ,
103- ] ,
104- } ,
105- {
106- text : 'Theme' ,
107- collapsed : true ,
108- items : [
109- ...baseComponentLibrary . themeList . map ( theme => ( {
110- text : theme . name ,
111- link : withTrailingSlash ( theme . slug ) ,
112- } ) ) ,
113- ] ,
48+ text : 'App Components' ,
49+ link : '/app-components/components/' ,
11450 } ,
11551 ] ,
52+ sidebar : {
53+ '/' : [
54+ {
55+ text : 'About' ,
56+ link : '/about' ,
57+ } ,
58+ {
59+ text : 'Installation' ,
60+ link : '/installation' ,
61+ } ,
62+ {
63+ text : 'Upgrading' ,
64+ link : '/upgrading' ,
65+ } ,
66+ ] ,
67+ '/base-components/' : [
68+ {
69+ text : 'Components' ,
70+ items : [
71+ ...baseComponentLibrary . componentsList . map ( component => ( {
72+ text : component . name ,
73+ link : withTrailingSlash ( component . slug ) ,
74+ } ) ) ,
75+ ] ,
76+ } ,
77+ {
78+ text : 'Composables' ,
79+ items : [
80+ ...baseComponentLibrary . composablesList . map ( composable => ( {
81+ text : composable . name ,
82+ link : withTrailingSlash ( composable . slug ) ,
83+ } ) ) ,
84+ ] ,
85+ } ,
86+ {
87+ text : 'Keys' ,
88+ collapsed : true ,
89+ items : [
90+ ...baseComponentLibrary . keysList . map ( key => ( {
91+ text : key . name ,
92+ link : withTrailingSlash ( key . slug ) ,
93+ } ) ) ,
94+ ] ,
95+ } ,
96+ {
97+ text : 'Utils' ,
98+ collapsed : true ,
99+ items : [
100+ ...baseComponentLibrary . utilsList . map ( utils => ( {
101+ text : utils . name ,
102+ link : withTrailingSlash ( utils . slug ) ,
103+ } ) ) ,
104+ ] ,
105+ } ,
106+ {
107+ text : 'Types' ,
108+ collapsed : true ,
109+ items : [
110+ ...baseComponentLibrary . typesList . map ( type => ( {
111+ text : type . name ,
112+ link : withTrailingSlash ( type . slug ) ,
113+ } ) ) ,
114+ ] ,
115+ } ,
116+ {
117+ text : 'Theme' ,
118+ collapsed : true ,
119+ items : [
120+ ...baseComponentLibrary . themeList . map ( theme => ( {
121+ text : theme . name ,
122+ link : withTrailingSlash ( theme . slug ) ,
123+ } ) ) ,
124+ ] ,
125+ } ,
126+ ] ,
127+ '/app-components/' : [ ] ,
128+ } ,
116129 } ,
117130
118131 buildEnd : ( ) => {
0 commit comments