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:
21
docs-site/components/DocsSidebar.vue
Normal file
21
docs-site/components/DocsSidebar.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<script setup lang="ts">
|
||||
interface NavItem {
|
||||
title?: string
|
||||
_path?: string
|
||||
children?: NavItem[]
|
||||
}
|
||||
|
||||
defineProps<{ items: NavItem[] }>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<nav class="docs-sidebar">
|
||||
<ul>
|
||||
<li v-for="item in items" :key="item._path || item.title">
|
||||
<NuxtLink v-if="item._path" :to="item._path">{{ item.title }}</NuxtLink>
|
||||
<span v-else>{{ item.title }}</span>
|
||||
<DocsSidebar v-if="item.children?.length" :items="item.children" />
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</template>
|
||||
Reference in New Issue
Block a user