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
22 lines
511 B
Vue
22 lines
511 B
Vue
<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>
|