Reorganize docs layout, use c/ua instead of CUA

This commit is contained in:
Morgan Dean
2025-06-20 13:03:03 -07:00
parent 4cada0cd04
commit 61deb4e9a7
24 changed files with 74 additions and 78 deletions

View File

@@ -1,38 +1,32 @@
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
import type { ReactNode } from 'react';
import { baseOptions } from '@/app/layout.config';
import { source } from '@/lib/source';
import { Home, Library, Cloud } from 'lucide-react';
import { DocsLayout } from "fumadocs-ui/layouts/docs";
import type { ReactNode } from "react";
import { baseOptions } from "@/app/layout.config";
import { source } from "@/lib/source";
import { Home, Library, Cloud, Globe } from "lucide-react";
export default function Layout({ children }: { children: ReactNode }) {
return (
<DocsLayout
tree={source.pageTree}
sidebar={{
tabs: [
{
url: '/home',
title: 'Home',
description: 'Welcome to Cua Documentation',
icon: <Home />,
},
{
url: '/libraries',
title: 'Libraries',
description: 'Library Documentation',
icon: <Library />,
},
{
url: '/cloud',
title: 'Cloud',
description: 'Cua Cloud Documentation',
icon: <Cloud />,
},
],
}}
{...baseOptions}
>
{children}
</DocsLayout>
);
return (
<DocsLayout
tree={source.pageTree}
sidebar={{
tabs: [
{
url: "/home",
title: "Home",
description: "Welcome to the C/ua Documentation",
icon: <Home />,
},
{
url: "/api",
title: "API Reference",
description: "API Reference for C/ua libraries and services",
icon: <Globe />,
},
],
}}
{...baseOptions}
>
{children}
</DocsLayout>
);
}

View File

@@ -38,11 +38,6 @@ export const baseOptions: BaseLayoutProps = {
},
githubUrl: 'https://github.com/trycua/cua',
links: [
{
url: '/home',
text: 'Documentation Home',
icon: <HomeIcon />,
},
{
url: 'https://trycua.com',
text: 'cua home',