From 6c9a48ba7d5e7185fb4c094ff4a0abdf15d5759d Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 9 Nov 2025 08:52:06 +0000 Subject: [PATCH] Gitbook-style docs layout - redesigned without header cgen-3e89017215dd4aac897aaad572f1790e --- client/components/docs/DocsLayout.tsx | 428 +++++++++++--------------- 1 file changed, 188 insertions(+), 240 deletions(-) diff --git a/client/components/docs/DocsLayout.tsx b/client/components/docs/DocsLayout.tsx index d76869de..b19d7a33 100644 --- a/client/components/docs/DocsLayout.tsx +++ b/client/components/docs/DocsLayout.tsx @@ -12,9 +12,9 @@ import { GitBranch, Layers, BookMarked, + ArrowLeft, } from "lucide-react"; import { Input } from "@/components/ui/input"; -import { Button } from "@/components/ui/button"; interface DocNavItem { title: string; @@ -112,278 +112,226 @@ export default function DocsLayout({ const isCurrentPage = (path: string) => location.pathname === path; return ( -
- {/* Header */} -
-
-
- - -
- -
- - AeThex Docs - - -
- - {/* Search Bar - Desktop */} -
-
- - setSearchQuery(e.target.value)} - /> -
-
- - {/* GitHub Link */} +
+ {/* Sidebar */} +
-
- {/* Sidebar */} - - - {/* Main Content */} -
- {/* Breadcrumbs */} - {breadcrumbs && ( -
-
- - Docs - - {breadcrumbs.map((crumb, idx) => ( - - - {crumb.path ? ( - - {crumb.label} - - ) : ( - {crumb.label} - )} - - ))} -
-
- )} - -
- {/* Content */} -
- {/* Page Header */} -
-

{title}

- {description && ( -

{description}

)}
+ + ))} + + - {/* Content */} -
{children}
+ {/* Main Content */} +
+ {/* Mobile Header */} +
+ + + ← Back + +
+ +
+ {/* Content */} +
+ {/* Page Header */} +
+

{title}

+ {description && ( +

{description}

+ )}
- {/* Table of Contents - Right Sidebar */} - {tableOfContents.length > 0 && ( - - )} + {/* Content */} +
{children}
- {/* Footer */} -
-
+
+

© 2025 AeThex. All rights reserved.

+ +
+
+ +
{/* Mobile Overlay */} {sidebarOpen && (