Skip to content

Commit 8423773

Browse files
committed
docs: leverage UPageLinks
1 parent f6b038a commit 8423773

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@nuxtjs/plausible": "^0.2.1",
2222
"@vueuse/core": "^10.4.1",
2323
"@vueuse/nuxt": "^10.4.1",
24-
"shikiji": "^0.6.5"
24+
"shikiji": "^0.6.6"
2525
},
2626
"devDependencies": {
2727
"@antfu/eslint-config": "^0.41.0",

docs/pages/[...slug].vue

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,9 @@ const communityLinks = computed(() => [
7878
<template v-if="page.body?.toc?.links?.length" #right>
7979
<UDocsToc :links="page.body.toc.links">
8080
<template #bottom>
81-
<div class="hidden lg:block">
82-
<hr v-if="page.body?.toc?.links?.length" class="border-gray-200 dark:border-gray-800 border-dashed my-6">
83-
<p class="text-sm/6 font-semibold flex items-center gap-1.5 mb-3">
84-
Community
85-
</p>
86-
<div class="space-y-2">
87-
<NuxtLink v-for="link of communityLinks" :key="link.to" :to="link.to" :target="link.target" class="flex items-center gap-1.5 text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300">
88-
<UIcon :name="link.icon" class="w-4 h-4" />
89-
<span class="text-sm font-medium">{{ link.label }}</span>
90-
</NuxtLink>
91-
</div>
81+
<div class="hidden lg:block space-y-6 !mt-6">
82+
<UDivider v-if="page.body?.toc?.links?.length" dashed />
83+
<UPageLinks title="Community" :links="communityLinks" />
9284
</div>
9385
</template>
9486
</UDocsToc>

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)