Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit 0acce85

Browse files
committed
chore(docs): update nav
1 parent 2d872ee commit 0acce85

File tree

3 files changed

+85
-72
lines changed

3 files changed

+85
-72
lines changed

packages/.vitepress/config.mts

Lines changed: 83 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -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: () => {

packages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ hero:
88
actions:
99
- theme: brand
1010
text: Get Started
11-
link: /base-components/components
11+
link: /installation
1212
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Upgrade Guide
1+
# Upgrading
22

33
To upgrade your components, use the same script provided for the installation process:
44

0 commit comments

Comments
 (0)