Skip to content

Commit

Permalink
docs: improve dynamic page
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Aug 1, 2023
1 parent b81eb9d commit a4141f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>

<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>

<div class="flex-1 flex items-center justify-end gap-1.5 -my-1 lg:hidden">
Expand Down
19 changes: 10 additions & 9 deletions docs/pages/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@
<UPageBody prose>
<ContentRenderer v-if="page && page.body" :value="page" />

<UButton
:to="githubLink"
variant="link"
icon="i-heroicons-pencil-square"
label="Edit this page on GitHub"
:padded="false"
class="mt-12"
/>
<div class="mt-12 not-prose">
<UButton
:to="githubLink"
variant="link"
icon="i-heroicons-pencil-square"
label="Edit this page on GitHub"
:padded="false"
/>
</div>

<hr v-if="surround?.length" class="border-gray-200 dark:border-gray-800 my-8">

<UDocsSurround :surround="surround" />

<Footer />
<Footer class="not-prose" />
</UPageBody>

<template v-if="page.body?.toc?.links?.length" #right>
Expand Down

1 comment on commit a4141f9

@vercel
Copy link

@vercel vercel bot commented on a4141f9 Aug 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-nuxtlabs.vercel.app
ui.nuxtlabs.com
ui-git-dev-nuxtlabs.vercel.app

Please sign in to comment.