Skip to content

Commit

Permalink
update:docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AntzyMo committed Sep 5, 2024
1 parent d6b196d commit 078cab1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": true,
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
Expand Down
6 changes: 3 additions & 3 deletions docs/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
})
useSeoMeta({
title: 'lite-ui | A Vue3 based UnoCSS UI library',
ogTitle: 'lite-ui | A Vue3 based UnoCSS UI library',
title: 'lite-space/ui | A Vue3 based UnoCSS UI library',
ogTitle: 'lite-space/ui | A Vue3 based UnoCSS UI library',
description: 'A Vue3 based UnoCSS UI library.',
ogDescription: 'A Vue3 based UnoCSS UI library.'
})
</script>

<template>
<NuxtLoadingIndicator />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
Expand Down
2 changes: 1 addition & 1 deletion docs/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
alt="logo"
class="w-6 h-6"
> -->
<span class="font-500">Lite-ui/ui</span>
<span class="font-500">lite-space/ui</span>
</NuxtLink>
<NuxtLink
v-for="item in navList"
Expand Down
19 changes: 16 additions & 3 deletions docs/pages/docs/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,30 @@
const route = useRoute()
const { data: page, error } = await useAsyncData(route.path, () => queryContent(route.path).findOne())
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation())
</script>

<template>
<div flex="~" class="gap-10">
<template v-if="page?.title">
<aside class="sticky top-14 z-1">
aside
<div v-for="item in navigation" :key="item._path">
<div v-for="it in item.children" :key="it._path">
<h3 class="text-sm font-bold mb-3">
{{ it.title }}
</h3>
<div class="grid gap-1">
<div v-for="t in it.children" :key="t._path" class="text-sm text-gray-600">
<NuxtLink :to="t._path" class="hover:text-gray-800">
{{ t.title }}
</NuxtLink>
</div>
</div>
</div>
</div>
</aside>
<main class="relative">
<Breadcrumb />
<span>Docs > {{ page.title }}</span>
<Breadcrumb class="" :items="['Docs', page.title]" separator="i-carbon:chevron-right" />
<ContentRenderer :value="page" />
</main>
</template>
Expand Down

0 comments on commit 078cab1

Please sign in to comment.