Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Nov 7, 2024
1 parent d936c48 commit edb1727
Show file tree
Hide file tree
Showing 26 changed files with 1,173 additions and 3,917 deletions.
8 changes: 0 additions & 8 deletions docs/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
export default defineAppConfig({
toaster: {
position: 'bottom-right' as const,
expand: true,
duration: 5000,
},
theme: {
radius: 0.25,
},
ui: {
colors: {
primary: 'green',
Expand Down
41 changes: 14 additions & 27 deletions docs/app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,13 @@ const searchTerm = ref('')
const links = computed(() => {
return [{
label: 'Docs',
icon: 'i-heroicons-book-open',
icon: 'i-lucide-book',
to: '/getting-started',
active: route.path.startsWith('/getting-started') || route.path.startsWith('/components'),
}, {
label: 'Releases',
icon: 'i-heroicons-rocket-launch',
to: '/releases',
}].filter(Boolean)
})
const color = computed(() => colorMode.value === 'dark' ? colors[appConfig.ui.colors.neutral as keyof typeof colors][900] : 'white')
const radius = computed(() => `:root { --ui-radius: ${appConfig.theme.radius}rem; }`)
useHead({
meta: [
Expand All @@ -58,9 +53,6 @@ useHead({
{ rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' },
{ rel: 'canonical', href: `https://content.nuxt.com${withoutTrailingSlash(route.path)}` },
],
style: [
{ innerHTML: radius, id: 'nuxt-ui-radius', tagPriority: -2 },
],
htmlAttrs: {
lang: 'en',
},
Expand All @@ -75,31 +67,26 @@ provide('navigation', navigation)
</script>

<template>
<UApp :toaster="appConfig.toaster">
<UApp>
<NuxtLoadingIndicator color="#FFF" />

<template v-if="!route.path.startsWith('/examples')">
<Banner />

<Header :links="links" />
</template>
<AppBanner />
<AppHeader :links="links" />

<NuxtLayout>
<NuxtPage />
</NuxtLayout>

<template v-if="!route.path.startsWith('/examples')">
<Footer />

<ClientOnly>
<LazyUContentSearch
v-model:search-term="searchTerm"
:files="files"
:navigation="navigation"
:fuse="{ resultLimit: 42 }"
/>
</ClientOnly>
</template>
<AppFooter />

<ClientOnly>
<LazyUContentSearch
v-model:search-term="searchTerm"
:files="files"
:navigation="navigation"
:fuse="{ resultLimit: 42 }"
/>
</ClientOnly>
</UApp>
</template>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<UBanner
icon="i-heroicons-wrench-screwdriver"
:actions="[{ label: 'Go to Nuxt Content v2', to: 'https://content.nuxt.com', trailingIcon: 'i-heroicons-arrow-right-20-solid' }]"
icon="i-lucide-construction"
:actions="[{ label: 'Go to Nuxt Content v2', to: 'https://content.nuxt.com', trailingIcon: 'i-lucide-arrow-right' }]"
:close="false"
>
<template #title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,25 @@ const route = useRoute()

<template #right>
<UButton
aria-label="Nuxt Website"
icon="i-simple-icons-nuxtdotjs"
to="https://nuxt.com"
aria-label="Nuxt Content on Discord"
icon="i-simple-icons-discord"
to="https://go.nuxt.com/discord"
target="_blank"
color="neutral"
variant="ghost"
/>
<UButton
aria-label="Nuxt Content on Discord"
icon="i-simple-icons-discord"
to="https://chat.nuxt.dev"
aria-label="Nuxt on BlueSKy"
icon="i-simple-icons-bluesky"
to="https://go.nuxt.com/bluesky"
target="_blank"
color="neutral"
variant="ghost"
/>
<UButton
aria-label="Nuxt on X"
icon="i-simple-icons-x"
to="https://x.com/nuxt_js"
to="https://go.nuxt.com/x"
target="_blank"
color="neutral"
variant="ghost"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ defineShortcuts({
class="flex items-end gap-2 font-bold text-xl text-[--ui-text-highlighted] min-w-0"
aria-label="Nuxt Content"
>
<Logo class="w-auto h-6 shrink-0" />
<AppLogo class="w-auto h-6 shrink-0" />

<UBadge
:label="`v${config.version}`"
variant="subtle"
size="sm"
class="-mb-[2px] rounded-[--ui-radius] font-semibold inline-block truncate"
class="-mb-[2px] font-semibold inline-block truncate"
/>
</NuxtLink>
</template>

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

<template #right>
<ThemePicker />
<UColorModeButton />

<UTooltip
text="Search"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<UCard>
<UButton
variant="ghost"
icon="i-heroicons-magnifying-glass-20-solid"
icon="i-lucide-search"
@click="useContentSearch().open.value = true"
>
Open Search Modal
Expand Down
140 changes: 0 additions & 140 deletions docs/app/components/theme-picker/ThemePicker.vue

This file was deleted.

35 changes: 0 additions & 35 deletions docs/app/components/theme-picker/ThemePickerButton.vue

This file was deleted.

Loading

0 comments on commit edb1727

Please sign in to comment.