Skip to content

Commit 747602c

Browse files
committed
fix: docs
1 parent 55ef278 commit 747602c

File tree

1 file changed

+77
-76
lines changed

1 file changed

+77
-76
lines changed

docs/.vitepress/config.ts

Lines changed: 77 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export default defineConfig({
3636
titleTemplate: rekaShortName,
3737
head: [
3838
['meta', { name: 'theme-color', content: '#00C38A' }],
39-
['link', { rel: 'icon', href: '/logo.png' }],
40-
['link', { rel: 'icon', href: '/logo.svg', type: 'image/svg+xml' }],
39+
['link', { rel: 'icon', href: '/reka-ui/logo.png' }],
40+
['link', { rel: 'icon', href: '/reka-ui/logo.svg', type: 'image/svg+xml' }],
4141
['meta', { name: 'author', content: `${teamMembers.map(c => c.name).join(', ')} and ${rekaName} contributors` }],
4242
['meta', { name: 'keywords', content: 'vue, nuxt, component-library, radix, radix-vue, reka-ui, typescript' }],
4343
['meta', { property: 'og:title', content: rekaName }],
@@ -77,7 +77,7 @@ export default defineConfig({
7777
themeConfig: {
7878
// https://vitepress.dev/reference/default-theme-config
7979
nav: [
80-
{ text: 'Docs', link: '/docs/overview/getting-started' },
80+
{ text: 'Docs', link: '/reka-ui/docs/overview/getting-started' },
8181
{ text: 'Examples', link: '/examples/checkbox-group' },
8282
{ text: 'Showcase', link: '/showcase' },
8383
{
@@ -98,39 +98,39 @@ export default defineConfig({
9898
text: 'Overview',
9999
icon: 'lucide:rocket',
100100
items: [
101-
{ text: 'Introduction', link: '/docs/overview/introduction' },
102-
{ text: 'Getting Started', link: '/docs/overview/getting-started' },
103-
{ text: 'Installation', link: '/docs/overview/installation' },
104-
{ text: 'Accessibility', link: '/docs/overview/accessibility' },
105-
{ text: 'Releases', link: '/docs/overview/releases' },
101+
{ text: 'Introduction', link: '/reka-ui/docs/overview/introduction' },
102+
{ text: 'Getting Started', link: '/reka-ui/docs/overview/getting-started' },
103+
{ text: 'Installation', link: '/reka-ui/docs/overview/installation' },
104+
{ text: 'Accessibility', link: '/reka-ui/docs/overview/accessibility' },
105+
{ text: 'Releases', link: '/reka-ui/docs/overview/releases' },
106106
],
107107
},
108108
{
109109
text: 'Guides',
110110
icon: 'lucide:book-open',
111111
items: [
112-
{ text: 'Styling', link: '/docs/guides/styling' },
113-
{ text: 'Animation/Transition', link: '/docs/guides/animation' },
114-
{ text: 'Composition', link: '/docs/guides/composition' },
115-
{ text: `Controlled State ${BadgeHTML('New')}`, link: '/docs/guides/controlled-state' },
112+
{ text: 'Styling', link: '/reka-ui/docs/guides/styling' },
113+
{ text: 'Animation/Transition', link: '/reka-ui/docs/guides/animation' },
114+
{ text: 'Composition', link: '/reka-ui/docs/guides/composition' },
115+
{ text: `Controlled State ${BadgeHTML('New')}`, link: '/reka-ui/docs/guides/controlled-state' },
116116
{
117117
text: 'Server side rendering',
118-
link: '/docs/guides/server-side-rendering',
118+
link: '/reka-ui/docs/guides/server-side-rendering',
119119
},
120-
{ text: 'Namespaced', link: '/docs/guides/namespaced-components' },
121-
{ text: 'Dates', link: '/docs/guides/dates' },
122-
{ text: 'Internationalization (RTL)', link: '/docs/guides/i18n' },
120+
{ text: 'Namespaced', link: '/reka-ui/docs/guides/namespaced-components' },
121+
{ text: 'Dates', link: '/reka-ui/docs/guides/dates' },
122+
{ text: 'Internationalization (RTL)', link: '/reka-ui/docs/guides/i18n' },
123123
{
124124
text: `Inject Context ${BadgeHTML('New')}`,
125-
link: '/docs/guides/inject-context',
125+
link: '/reka-ui/docs/guides/inject-context',
126126
},
127127
{
128128
text: `Virtualization ${BadgeHTML('New')}`,
129-
link: '/docs/guides/virtualization',
129+
link: '/reka-ui/docs/guides/virtualization',
130130
},
131131
{
132132
text: `Migration ${BadgeHTML('New')}`,
133-
link: '/docs/guides/migration',
133+
link: '/reka-ui/docs/guides/migration',
134134
},
135135
],
136136
},
@@ -141,89 +141,89 @@ export default defineConfig({
141141
{
142142
text: 'Form',
143143
items: [
144-
{ text: 'Checkbox', link: '/docs/components/checkbox' },
145-
{ text: 'Combobox', link: '/docs/components/combobox' },
146-
{ text: `Editable`, link: '/docs/components/editable' },
147-
{ text: `Listbox`, link: '/docs/components/listbox' },
148-
{ text: `Number Field`, link: '/docs/components/number-field' },
149-
{ text: 'Label', link: '/docs/components/label' },
150-
{ text: 'Pin Input', link: '/docs/components/pin-input' },
151-
{ text: 'Radio Group', link: '/docs/components/radio-group' },
152-
{ text: 'Select', link: '/docs/components/select' },
153-
{ text: 'Slider', link: '/docs/components/slider' },
154-
{ text: 'Switch', link: '/docs/components/switch' },
155-
{ text: 'Tags Input', link: '/docs/components/tags-input' },
156-
{ text: 'Toggle', link: '/docs/components/toggle' },
157-
{ text: 'Toggle Group', link: '/docs/components/toggle-group' },
144+
{ text: 'Checkbox', link: '/reka-ui/docs/components/checkbox' },
145+
{ text: 'Combobox', link: '/reka-ui/docs/components/combobox' },
146+
{ text: `Editable`, link: '/reka-ui/docs/components/editable' },
147+
{ text: `Listbox`, link: '/reka-ui/docs/components/listbox' },
148+
{ text: `Number Field`, link: '/reka-ui/docs/components/number-field' },
149+
{ text: 'Label', link: '/reka-ui/docs/components/label' },
150+
{ text: 'Pin Input', link: '/reka-ui/docs/components/pin-input' },
151+
{ text: 'Radio Group', link: '/reka-ui/docs/components/radio-group' },
152+
{ text: 'Select', link: '/reka-ui/docs/components/select' },
153+
{ text: 'Slider', link: '/reka-ui/docs/components/slider' },
154+
{ text: 'Switch', link: '/reka-ui/docs/components/switch' },
155+
{ text: 'Tags Input', link: '/reka-ui/docs/components/tags-input' },
156+
{ text: 'Toggle', link: '/reka-ui/docs/components/toggle' },
157+
{ text: 'Toggle Group', link: '/reka-ui/docs/components/toggle-group' },
158158
],
159159
},
160160
{
161161
text: 'Dates',
162162
items: [
163163
{
164164
text: `Calendar ${BadgeHTML('Alpha', true)}`,
165-
link: '/docs/components/calendar',
165+
link: '/reka-ui/docs/components/calendar',
166166
},
167167
{
168168
text: `Date Field ${BadgeHTML('Alpha', true)}`,
169-
link: '/docs/components/date-field',
169+
link: '/reka-ui/docs/components/date-field',
170170
},
171171
{
172172
text: `Date Picker ${BadgeHTML('Alpha', true)}`,
173-
link: '/docs/components/date-picker',
173+
link: '/reka-ui/docs/components/date-picker',
174174
},
175175
{
176176
text: `Date Range Field ${BadgeHTML('Alpha', true)}`,
177-
link: '/docs/components/date-range-field',
177+
link: '/reka-ui/docs/components/date-range-field',
178178
},
179179
{
180180
text: `Date Range Picker ${BadgeHTML('Alpha', true)}`,
181-
link: '/docs/components/date-range-picker',
181+
link: '/reka-ui/docs/components/date-range-picker',
182182
},
183183
{
184184
text: `Range Calendar ${BadgeHTML('Alpha', true)}`,
185-
link: '/docs/components/range-calendar',
185+
link: '/reka-ui/docs/components/range-calendar',
186186
},
187187
{
188188
text: `Time Field ${BadgeHTML('Alpha', true)}`,
189-
link: '/docs/components/time-field',
189+
link: '/reka-ui/docs/components/time-field',
190190
},
191191
],
192192
},
193193
{
194194
text: 'General',
195195
items: [
196-
{ text: 'Accordion', link: '/docs/components/accordion' },
197-
{ text: 'Alert Dialog', link: '/docs/components/alert-dialog' },
198-
{ text: 'Aspect Ratio', link: '/docs/components/aspect-ratio' },
199-
{ text: 'Avatar', link: '/docs/components/avatar' },
200-
{ text: 'Collapsible', link: '/docs/components/collapsible' },
201-
{ text: 'Context Menu', link: '/docs/components/context-menu' },
202-
{ text: 'Dialog', link: '/docs/components/dialog' },
203-
{ text: 'Dropdown Menu', link: '/docs/components/dropdown-menu' },
204-
{ text: 'Hover Card', link: '/docs/components/hover-card' },
205-
{ text: 'Menubar', link: '/docs/components/menubar' },
196+
{ text: 'Accordion', link: '/reka-ui/docs/components/accordion' },
197+
{ text: 'Alert Dialog', link: '/reka-ui/docs/components/alert-dialog' },
198+
{ text: 'Aspect Ratio', link: '/reka-ui/docs/components/aspect-ratio' },
199+
{ text: 'Avatar', link: '/reka-ui/docs/components/avatar' },
200+
{ text: 'Collapsible', link: '/reka-ui/docs/components/collapsible' },
201+
{ text: 'Context Menu', link: '/reka-ui/docs/components/context-menu' },
202+
{ text: 'Dialog', link: '/reka-ui/docs/components/dialog' },
203+
{ text: 'Dropdown Menu', link: '/reka-ui/docs/components/dropdown-menu' },
204+
{ text: 'Hover Card', link: '/reka-ui/docs/components/hover-card' },
205+
{ text: 'Menubar', link: '/reka-ui/docs/components/menubar' },
206206
{
207207
text: 'Navigation Menu',
208-
link: '/docs/components/navigation-menu',
208+
link: '/reka-ui/docs/components/navigation-menu',
209209
},
210-
{ text: 'Pagination', link: '/docs/components/pagination' },
211-
{ text: 'Popover', link: '/docs/components/popover' },
212-
{ text: 'Progress', link: '/docs/components/progress' },
213-
{ text: 'Scroll Area', link: '/docs/components/scroll-area' },
214-
{ text: 'Separator', link: '/docs/components/separator' },
215-
{ text: 'Splitter', link: '/docs/components/splitter' },
210+
{ text: 'Pagination', link: '/reka-ui/docs/components/pagination' },
211+
{ text: 'Popover', link: '/reka-ui/docs/components/popover' },
212+
{ text: 'Progress', link: '/reka-ui/docs/components/progress' },
213+
{ text: 'Scroll Area', link: '/reka-ui/docs/components/scroll-area' },
214+
{ text: 'Separator', link: '/reka-ui/docs/components/separator' },
215+
{ text: 'Splitter', link: '/reka-ui/docs/components/splitter' },
216216
{
217217
text: `Stepper ${BadgeHTML('Alpha', true)}`,
218-
link: '/docs/components/stepper',
218+
link: '/reka-ui/docs/components/stepper',
219219
},
220-
{ text: 'Tabs', link: '/docs/components/tabs' },
221-
{ text: 'Toast', link: '/docs/components/toast' },
222-
{ text: 'Toolbar', link: '/docs/components/toolbar' },
223-
{ text: 'Tooltip', link: '/docs/components/tooltip' },
220+
{ text: 'Tabs', link: '/reka-ui/docs/components/tabs' },
221+
{ text: 'Toast', link: '/reka-ui/docs/components/toast' },
222+
{ text: 'Toolbar', link: '/reka-ui/docs/components/toolbar' },
223+
{ text: 'Tooltip', link: '/reka-ui/docs/components/tooltip' },
224224
{
225225
text: `Tree ${BadgeHTML('Alpha', true)}`,
226-
link: '/docs/components/tree',
226+
link: '/reka-ui/docs/components/tree',
227227
},
228228
],
229229
},
@@ -236,38 +236,38 @@ export default defineConfig({
236236
{
237237
text: 'Component',
238238
items: [
239-
{ text: 'Config Provider', link: '/docs/utilities/config-provider' },
240-
{ text: 'Focus Scope', link: '/docs/utilities/focus-scope' },
241-
{ text: 'Presence', link: '/docs/utilities/presence' },
242-
{ text: 'Primitive', link: '/docs/utilities/primitive' },
243-
{ text: 'Slot', link: '/docs/utilities/slot' },
244-
{ text: 'Visually Hidden', link: '/docs/utilities/visually-hidden' },
239+
{ text: 'Config Provider', link: '/reka-ui/docs/utilities/config-provider' },
240+
{ text: 'Focus Scope', link: '/reka-ui/docs/utilities/focus-scope' },
241+
{ text: 'Presence', link: '/reka-ui/docs/utilities/presence' },
242+
{ text: 'Primitive', link: '/reka-ui/docs/utilities/primitive' },
243+
{ text: 'Slot', link: '/reka-ui/docs/utilities/slot' },
244+
{ text: 'Visually Hidden', link: '/reka-ui/docs/utilities/visually-hidden' },
245245
],
246246
},
247247
{
248248
text: 'Composable',
249249
items: [
250-
{ text: 'useId', link: '/docs/utilities/use-id' },
250+
{ text: 'useId', link: '/reka-ui/docs/utilities/use-id' },
251251
{
252252
text: 'useDateFormatter',
253-
link: '/docs/utilities/use-date-formatter',
253+
link: '/reka-ui/docs/utilities/use-date-formatter',
254254
},
255255
{
256256
text: 'useEmitAsProps',
257-
link: '/docs/utilities/use-emit-as-props',
257+
link: '/reka-ui/docs/utilities/use-emit-as-props',
258258
},
259-
{ text: 'useFilter', link: '/docs/utilities/use-filter' },
259+
{ text: 'useFilter', link: '/reka-ui/docs/utilities/use-filter' },
260260
{
261261
text: 'useForwardExpose',
262-
link: '/docs/utilities/use-forward-expose',
262+
link: '/reka-ui/docs/utilities/use-forward-expose',
263263
},
264264
{
265265
text: 'useForwardProps',
266-
link: '/docs/utilities/use-forward-props',
266+
link: '/reka-ui/docs/utilities/use-forward-props',
267267
},
268268
{
269269
text: 'useForwardPropsEmits',
270-
link: '/docs/utilities/use-forward-props-emits',
270+
link: '/reka-ui/docs/utilities/use-forward-props-emits',
271271
},
272272
],
273273
},
@@ -360,6 +360,7 @@ export default defineConfig({
360360
},
361361
editLink: {
362362
pattern: 'https://github.com/unovue/reka-ui/edit/main/docs/content/:path',
363+
pattern: 'https://github.com/unovue/reka-ui/edit//mainreka-ui/docs/content/:path',
363364
},
364365
carbonAds: {
365366
code: 'CW7DP2JW',

0 commit comments

Comments
 (0)