docs: improve dynamic page

This commit is contained in:
Benjamin Canac
2023-08-01 16:05:29 +02:00
parent 32a32d00ab
commit 75d26e0c2b
2 changed files with 11 additions and 10 deletions

View File

@@ -8,7 +8,7 @@
</div> </div>
<NuxtLink :to="`https://github.com/nuxtlabs/ui/releases/tag/v${config.version}`" target="_blank" class="inline-flex"> <NuxtLink :to="`https://github.com/nuxtlabs/ui/releases/tag/v${config.version}`" target="_blank" class="inline-flex">
<UBadge :label="`v${config.version}`" /> <UBadge :label="`v${config.version}`" variant="subtle" />
</NuxtLink> </NuxtLink>
<div class="flex-1 flex items-center justify-end gap-1.5 -my-1 lg:hidden"> <div class="flex-1 flex items-center justify-end gap-1.5 -my-1 lg:hidden">

View File

@@ -5,20 +5,21 @@
<UPageBody prose> <UPageBody prose>
<ContentRenderer v-if="page && page.body" :value="page" /> <ContentRenderer v-if="page && page.body" :value="page" />
<UButton <div class="mt-12 not-prose">
:to="githubLink" <UButton
variant="link" :to="githubLink"
icon="i-heroicons-pencil-square" variant="link"
label="Edit this page on GitHub" icon="i-heroicons-pencil-square"
:padded="false" label="Edit this page on GitHub"
class="mt-12" :padded="false"
/> />
</div>
<hr v-if="surround?.length" class="border-gray-200 dark:border-gray-800 my-8"> <hr v-if="surround?.length" class="border-gray-200 dark:border-gray-800 my-8">
<UDocsSurround :surround="surround" /> <UDocsSurround :surround="surround" />
<Footer /> <Footer class="not-prose" />
</UPageBody> </UPageBody>
<template v-if="page.body?.toc?.links?.length" #right> <template v-if="page.body?.toc?.links?.length" #right>