mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 07:27:57 -05:00
* chore: replace prettier with biome and add linting * chore: update devcontainer settings to use biome for linting and remove eslint, prettier * chore: update docker-compose to use Postgres 17-alpine and standardize quotes * chore: fixed more BUT disabled most rules due to limit * added additional rules, fixed linting & ts errors * added additional rules * rebased & linted * fixed oauth * updated biome & minor modifications --------- Co-authored-by: Aditya Tripathi <aditya@climactic.co>
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
import type { ReactNode } from 'react'
|
|
import { DocsLayout } from 'fumadocs-ui/layouts/docs'
|
|
import { ExternalLink, GithubIcon } from 'lucide-react'
|
|
import Link from 'next/link'
|
|
import { source } from '@/lib/source'
|
|
|
|
const GitHubLink = () => (
|
|
<div className='fixed right-4 bottom-4 z-50'>
|
|
<Link
|
|
href='https://github.com/simstudioai/sim'
|
|
target='_blank'
|
|
rel='noopener noreferrer'
|
|
className='flex h-8 w-8 items-center justify-center rounded-full border border-border bg-background transition-colors hover:bg-muted'
|
|
>
|
|
<GithubIcon className='h-4 w-4' />
|
|
</Link>
|
|
</div>
|
|
)
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<>
|
|
<DocsLayout
|
|
tree={source.pageTree}
|
|
nav={{
|
|
title: <div className='flex items-center font-medium'>Sim Studio</div>,
|
|
}}
|
|
links={[
|
|
{
|
|
text: 'Visit Sim Studio',
|
|
url: 'https://simstudio.ai',
|
|
icon: <ExternalLink className='h-4 w-4' />,
|
|
},
|
|
]}
|
|
sidebar={{
|
|
defaultOpenLevel: 1,
|
|
collapsible: true,
|
|
footer: null,
|
|
}}
|
|
>
|
|
{children}
|
|
</DocsLayout>
|
|
<GitHubLink />
|
|
</>
|
|
)
|
|
}
|