mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-03 05:37:56 +01:00
docs: invalid Edit this page link on main branch
This commit is contained in:
@@ -75,7 +75,7 @@ const headline = computed(() => findPageHeadline(page.value))
|
|||||||
const links = computed(() => [{
|
const links = computed(() => [{
|
||||||
icon: 'i-heroicons-pencil-square',
|
icon: 'i-heroicons-pencil-square',
|
||||||
label: 'Edit this page',
|
label: 'Edit this page',
|
||||||
to: `https://github.com/nuxt/ui/edit/dev/docs/content/${page?.value?._file.split('/').slice(1).join('/')}`,
|
to: `https://github.com/nuxt/ui/edit/dev/docs/content/${branch.value?.name === 'dev' ? page?.value?._file.split('/').slice(1).join('/') : page?.value?._file}`,
|
||||||
target: '_blank'
|
target: '_blank'
|
||||||
}, {
|
}, {
|
||||||
icon: 'i-heroicons-star',
|
icon: 'i-heroicons-star',
|
||||||
|
|||||||
Reference in New Issue
Block a user