mirror of
https://github.com/trycua/computer.git
synced 2026-01-07 22:10:02 -06:00
Reorganize docs layout, use c/ua instead of CUA
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user