docs: migrate to nuxt compatibility 4

This commit is contained in:
Benjamin Canac
2024-06-12 11:10:36 +02:00
parent ceee9b2e11
commit 20995aa6d3
85 changed files with 74 additions and 69 deletions

View File

@@ -0,0 +1,5 @@
<template>
<div>
<slot />
</div>
</template>

25
docs/app/layouts/docs.vue Normal file
View File

@@ -0,0 +1,25 @@
<template>
<UMain>
<UContainer>
<UPage>
<template #left>
<UPageAside>
<!-- <BranchSelect /> -->
<UContentNavigation :navigation="navigation" />
</UPageAside>
</template>
<slot />
</UPage>
</UContainer>
</UMain>
</template>
<script setup lang="ts">
import type { NavItem } from '@nuxt/content/dist/runtime/types'
const nav = inject<Ref<NavItem[]>>('navigation')
const navigation = computed(() => nav.value.filter(item => !item._path.startsWith('/pro')))
</script>