Ersetze Docusaurus vollständig durch Nuxt-Content-Docs-App
All checks were successful
Build and Push Docker Images / verify-docs-sync (push) Successful in 9s
Build and Push Docker Images / build-backend (push) Successful in 14s
Build and Push Docker Images / build-frontend (push) Successful in 13s
Build and Push Docker Images / build-docs (push) Successful in 1m47s
All checks were successful
Build and Push Docker Images / verify-docs-sync (push) Successful in 9s
Build and Push Docker Images / build-backend (push) Successful in 14s
Build and Push Docker Images / build-frontend (push) Successful in 13s
Build and Push Docker Images / build-docs (push) Successful in 1m47s
This commit is contained in:
23
docs-site/pages/index.vue
Normal file
23
docs-site/pages/index.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
const { data: navigation } = await useAsyncData('docs-navigation', () => fetchContentNavigation())
|
||||
const { data: page } = await useAsyncData('docs-page-index', () => queryContent('/index').findOne())
|
||||
|
||||
if (!page.value) {
|
||||
throw createError({ statusCode: 404, statusMessage: 'Seite nicht gefunden' })
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="docs-layout">
|
||||
<aside class="docs-aside">
|
||||
<NuxtLink class="docs-brand" to="/">FEDEO Docs</NuxtLink>
|
||||
<DocsSidebar :items="navigation || []" />
|
||||
</aside>
|
||||
|
||||
<main class="docs-main">
|
||||
<article class="docs-article">
|
||||
<ContentRenderer :value="page" />
|
||||
</article>
|
||||
</main>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user