Skip to content

Commit edb1727

Browse files
committed
docs: update
1 parent d936c48 commit edb1727

File tree

26 files changed

+1173
-3917
lines changed

26 files changed

+1173
-3917
lines changed

docs/app/app.config.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
export default defineAppConfig({
2-
toaster: {
3-
position: 'bottom-right' as const,
4-
expand: true,
5-
duration: 5000,
6-
},
7-
theme: {
8-
radius: 0.25,
9-
},
102
ui: {
113
colors: {
124
primary: 'green',

docs/app/app.vue

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,13 @@ const searchTerm = ref('')
3636
const links = computed(() => {
3737
return [{
3838
label: 'Docs',
39-
icon: 'i-heroicons-book-open',
39+
icon: 'i-lucide-book',
4040
to: '/getting-started',
4141
active: route.path.startsWith('/getting-started') || route.path.startsWith('/components'),
42-
}, {
43-
label: 'Releases',
44-
icon: 'i-heroicons-rocket-launch',
45-
to: '/releases',
4642
}].filter(Boolean)
4743
})
4844
4945
const color = computed(() => colorMode.value === 'dark' ? colors[appConfig.ui.colors.neutral as keyof typeof colors][900] : 'white')
50-
const radius = computed(() => `:root { --ui-radius: ${appConfig.theme.radius}rem; }`)
5146
5247
useHead({
5348
meta: [
@@ -58,9 +53,6 @@ useHead({
5853
{ rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' },
5954
{ rel: 'canonical', href: `https://content.nuxt.com${withoutTrailingSlash(route.path)}` },
6055
],
61-
style: [
62-
{ innerHTML: radius, id: 'nuxt-ui-radius', tagPriority: -2 },
63-
],
6456
htmlAttrs: {
6557
lang: 'en',
6658
},
@@ -75,31 +67,26 @@ provide('navigation', navigation)
7567
</script>
7668

7769
<template>
78-
<UApp :toaster="appConfig.toaster">
70+
<UApp>
7971
<NuxtLoadingIndicator color="#FFF" />
8072

81-
<template v-if="!route.path.startsWith('/examples')">
82-
<Banner />
83-
84-
<Header :links="links" />
85-
</template>
73+
<AppBanner />
74+
<AppHeader :links="links" />
8675

8776
<NuxtLayout>
8877
<NuxtPage />
8978
</NuxtLayout>
9079

91-
<template v-if="!route.path.startsWith('/examples')">
92-
<Footer />
93-
94-
<ClientOnly>
95-
<LazyUContentSearch
96-
v-model:search-term="searchTerm"
97-
:files="files"
98-
:navigation="navigation"
99-
:fuse="{ resultLimit: 42 }"
100-
/>
101-
</ClientOnly>
102-
</template>
80+
<AppFooter />
81+
82+
<ClientOnly>
83+
<LazyUContentSearch
84+
v-model:search-term="searchTerm"
85+
:files="files"
86+
:navigation="navigation"
87+
:fuse="{ resultLimit: 42 }"
88+
/>
89+
</ClientOnly>
10390
</UApp>
10491
</template>
10592

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<UBanner
3-
icon="i-heroicons-wrench-screwdriver"
4-
:actions="[{ label: 'Go to Nuxt Content v2', to: 'https://content.nuxt.com', trailingIcon: 'i-heroicons-arrow-right-20-solid' }]"
3+
icon="i-lucide-construction"
4+
:actions="[{ label: 'Go to Nuxt Content v2', to: 'https://content.nuxt.com', trailingIcon: 'i-lucide-arrow-right' }]"
55
:close="false"
66
>
77
<template #title>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,25 @@ const route = useRoute()
4848

4949
<template #right>
5050
<UButton
51-
aria-label="Nuxt Website"
52-
icon="i-simple-icons-nuxtdotjs"
53-
to="https://nuxt.com"
51+
aria-label="Nuxt Content on Discord"
52+
icon="i-simple-icons-discord"
53+
to="https://go.nuxt.com/discord"
5454
target="_blank"
5555
color="neutral"
5656
variant="ghost"
5757
/>
5858
<UButton
59-
aria-label="Nuxt Content on Discord"
60-
icon="i-simple-icons-discord"
61-
to="https://chat.nuxt.dev"
59+
aria-label="Nuxt on BlueSKy"
60+
icon="i-simple-icons-bluesky"
61+
to="https://go.nuxt.com/bluesky"
6262
target="_blank"
6363
color="neutral"
6464
variant="ghost"
6565
/>
6666
<UButton
6767
aria-label="Nuxt on X"
6868
icon="i-simple-icons-x"
69-
to="https://x.com/nuxt_js"
69+
to="https://go.nuxt.com/x"
7070
target="_blank"
7171
color="neutral"
7272
variant="ghost"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ defineShortcuts({
2727
class="flex items-end gap-2 font-bold text-xl text-[--ui-text-highlighted] min-w-0"
2828
aria-label="Nuxt Content"
2929
>
30-
<Logo class="w-auto h-6 shrink-0" />
30+
<AppLogo class="w-auto h-6 shrink-0" />
3131

3232
<UBadge
3333
:label="`v${config.version}`"
3434
variant="subtle"
3535
size="sm"
36-
class="-mb-[2px] rounded-[--ui-radius] font-semibold inline-block truncate"
36+
class="-mb-[2px] font-semibold inline-block truncate"
3737
/>
3838
</NuxtLink>
3939
</template>
4040

4141
<!-- <UNavigationMenu :items="items" variant="link" /> -->
4242

4343
<template #right>
44-
<ThemePicker />
44+
<UColorModeButton />
4545

4646
<UTooltip
4747
text="Search"

docs/app/components/example/ExampleFulltextContentSearch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<UCard>
33
<UButton
44
variant="ghost"
5-
icon="i-heroicons-magnifying-glass-20-solid"
5+
icon="i-lucide-search"
66
@click="useContentSearch().open.value = true"
77
>
88
Open Search Modal

docs/app/components/theme-picker/ThemePicker.vue

Lines changed: 0 additions & 140 deletions
This file was deleted.

docs/app/components/theme-picker/ThemePickerButton.vue

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)