mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 18:00:43 +01:00
docs: improve dynamic page
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user