{/* Animated gradient background (matching landing page) */}
@@ -25,8 +81,37 @@ export default function DocsRootLayout({ children }: DocsRootLayoutProps) {
- {/* Content */}
-
+ {/* Left Sidebar - Thin, minimal design */}
+
+
+ {/* Main Content Area - Wide margins for comfortable reading */}
+
+
+ {/* Breadcrumb */}
+
+
+ {/* Page Content */}
+ {children}
+
+
+
+ {/* Right TOC - Subtle and unobtrusive */}
+
+
);
}
diff --git a/apps/landing/src/app/docs/page.tsx b/apps/landing/src/app/docs/page.tsx
index 8a05d26..969db2f 100644
--- a/apps/landing/src/app/docs/page.tsx
+++ b/apps/landing/src/app/docs/page.tsx
@@ -4,16 +4,12 @@
* Getting Started Page - Production Documentation
*
* Refactored to use block components from @/components/docs/blocks
- * Demonstrates composition of reusable semantic components
+ * Layout (SubsectionNav, DocsSidebar, Breadcrumb, TOC) handled by parent layout.tsx
+ * This page only provides TOC items and content.
*/
-import { DocsLayout } from '@/components/docs/layout/DocsLayout';
-import { DocsSidebar } from '@/components/docs/layout/DocsSidebar';
-import { DocsTOC } from '@/components/docs/layout/DocsTOC';
-import { SubsectionNav } from '@/components/shared/SubsectionNav';
import { TipBox } from '@/components/docs/shared/TipBox';
import { CodeBlock } from '@/components/docs/shared/CodeBlock';
-import { Breadcrumb } from '@/components/docs/shared/Breadcrumb';
import {
Hero,
SectionHeader,
@@ -21,6 +17,7 @@ import {
LinkCard,
LinkCardGrid,
} from '@/components/docs/blocks';
+import { TocProvider } from '@/contexts/TocContext';
const tocItems = [
{ id: 'introduction', text: 'Introduction', level: 2 },
@@ -31,28 +28,9 @@ const tocItems = [
{ id: 'next-steps', text: 'Next Steps', level: 2 },
];
-const navItems = [
- { label: 'Documentation', href: '/docs' },
- { label: 'Demo', href: '/demo' },
- { label: 'Examples', href: '/docs/examples' },
-];
-
export default function GettingStartedPage() {
return (
- <>
- {/* Subsection Navigation */}
-