Update DocSidebar.tsx

This commit is contained in:
MacRimi 2025-02-17 17:08:49 +01:00 committed by GitHub
parent 08114c0281
commit 3b47497e03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ const sidebarItems: MenuItem[] = [
{ title: "Introduction", href: "/docs/introduction" }, { title: "Introduction", href: "/docs/introduction" },
{ title: "Installation", href: "/docs/installation" }, { title: "Installation", href: "/docs/installation" },
{ {
title: "GPUs and Coral", title: "Hardware: GPUs and Coral",
submenu: [ submenu: [
{ title: "HW iGPU acceleration to an LXC", href: "/docs/hardware/igpu-acceleration-lxc" }, { title: "HW iGPU acceleration to an LXC", href: "/docs/hardware/igpu-acceleration-lxc" },
{ title: "Coral TPU to an LXC", href: "/docs/hardware/coral-tpu-lxc" }, { title: "Coral TPU to an LXC", href: "/docs/hardware/coral-tpu-lxc" },
@ -28,7 +28,7 @@ const sidebarItems: MenuItem[] = [
], ],
}, },
{ {
title: "Storage", title: "Hard Drives, Disk Images, and Storage",
submenu: [ submenu: [
{ title: "Disk Passthrough to a VM", href: "/docs/storage/disk-passthrough-vm" }, { title: "Disk Passthrough to a VM", href: "/docs/storage/disk-passthrough-vm" },
{ title: "Import Disk Image to a VM", href: "/docs/storage/import-disk-image-vm" }, { title: "Import Disk Image to a VM", href: "/docs/storage/import-disk-image-vm" },
@ -109,7 +109,7 @@ export default function DocSidebar() {
} }
return ( return (
<nav className="w-full md:w-64 bg-gray-100 p-4 md:p-6"> <nav className="w-full md:w-1/4 lg:w-1/5 xl:w-1/6 max-w-xs bg-gray-100 p-4 md:p-6">
<h2 className="text-lg font-semibold mb-4 text-gray-900">Documentation</h2> <h2 className="text-lg font-semibold mb-4 text-gray-900">Documentation</h2>
<ul className="space-y-2">{sidebarItems.map(renderMenuItem)}</ul> <ul className="space-y-2">{sidebarItems.map(renderMenuItem)}</ul>
</nav> </nav>