diff --git a/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx b/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx index 6d5db605..7ee868e4 100644 --- a/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx +++ b/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx @@ -28,12 +28,6 @@ export default function TuonoBreadcrumbs({ "position": 1, "name": "Tuono - The React/Rust fullstack framework", "item": "https://tuono.dev" - }, - { - "@type": "ListItem", - "position": 2, - "name": "Tuono - Documentation", - "item": "https://tuono.dev/documentation" }${breadcrumbs.length > 0 ? ',' : ''} ${breadcrumbs .map((br, i) => @@ -54,13 +48,7 @@ export default function TuonoBreadcrumbs({ mb="md" mt="md" > - {breadcrumbs.map((br) => ( diff --git a/apps/documentation/src/components/navbar/actions.tsx b/apps/documentation/src/components/navbar/actions.tsx index 3a00fdce..d941748a 100644 --- a/apps/documentation/src/components/navbar/actions.tsx +++ b/apps/documentation/src/components/navbar/actions.tsx @@ -1,11 +1,6 @@ import type { JSX } from 'react' -import { Flex, Button, ActionIcon, Group } from '@mantine/core' -import { - IconBrandGithub, - IconBook, - IconBrandDiscord, -} from '@tabler/icons-react' -import { Link } from 'tuono' +import { Flex, ActionIcon, Group } from '@mantine/core' +import { IconBrandGithub, IconBrandDiscord } from '@tabler/icons-react' import ThemeBtn from '../theme-btn' @@ -13,16 +8,6 @@ export default function Actions(): JSX.Element { return ( - - + @@ -98,8 +100,13 @@ export default function RootRoute({ children }: RootRouteProps): JSX.Element { }} > - {pathname.startsWith('/documentation') && } - {children} + + + + {children} + + + diff --git a/apps/documentation/src/routes/documentation/__root.tsx b/apps/documentation/src/routes/documentation/__root.tsx deleted file mode 100644 index 3ec37ba3..00000000 --- a/apps/documentation/src/routes/documentation/__root.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import type { ReactNode, JSX } from 'react' -import { AppShell, Container } from '@mantine/core' - -import MdxProvider from '@/components/mdx-provider' -import EditPage from '@/components/edit-page' - -interface RootRouteProps { - children: ReactNode -} - -export default function RootRoute({ children }: RootRouteProps): JSX.Element { - return ( - - - {children} - - - - ) -} diff --git a/apps/documentation/src/routes/documentation/index.mdx b/apps/documentation/src/routes/index.mdx similarity index 97% rename from apps/documentation/src/routes/documentation/index.mdx rename to apps/documentation/src/routes/index.mdx index 76966e84..d33781e6 100644 --- a/apps/documentation/src/routes/documentation/index.mdx +++ b/apps/documentation/src/routes/index.mdx @@ -2,7 +2,7 @@ import MetaTags from '@/components/meta-tags' diff --git a/apps/documentation/src/routes/index.tsx b/apps/documentation/src/routes/index.tsx deleted file mode 100644 index f478e540..00000000 --- a/apps/documentation/src/routes/index.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import type { JSX } from 'react' - -import Hero from '@/components/hero' -import MetaTags from '@/components/meta-tags' - -export default function IndexPage(): JSX.Element { - return ( - <> - - - - ) -}