diff --git a/src/components/LayoutDocs.jsx b/src/components/Layout.jsx similarity index 99% rename from src/components/LayoutDocs.jsx rename to src/components/Layout.jsx index 9eecfc09..7d8252f3 100644 --- a/src/components/LayoutDocs.jsx +++ b/src/components/Layout.jsx @@ -122,7 +122,7 @@ function useTableOfContents(tableOfContents) { return currentSection } -export function LayoutDocs({ children, title, tableOfContents }) { +export function Layout({ children, title, tableOfContents }) { let router = useRouter() let isHomePage = router.pathname === '/' let allLinks = navigation.flatMap((section) => section.links) diff --git a/src/components/LayoutAPI.jsx b/src/components/LayoutAPI.jsx deleted file mode 100644 index 07ee9d07..00000000 --- a/src/components/LayoutAPI.jsx +++ /dev/null @@ -1,38 +0,0 @@ -import Link from 'next/link' -import { motion } from 'framer-motion' - -import { Footer } from '@/components/Footer' -import { Header } from '@/components/Header' -import { Logo } from '@/components/Logo' -import { NavigationAPI } from '@/components/NavigationAPI' -import { Prose } from '@/components/Prose' -import { SectionProvider } from '@/components/SectionProvider' - -export function LayoutAPI({ children, sections = [] }) { - return ( - -
- -
-
- - - -
-
- -
-
-
-
- {children} -
-
-
-
- ) -} diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx index 8d92d512..ec38ad52 100644 --- a/src/pages/_app.jsx +++ b/src/pages/_app.jsx @@ -2,13 +2,12 @@ import Head from 'next/head' import { Router, useRouter } from 'next/router' import { MDXProvider } from '@mdx-js/react' -import { LayoutAPI } from '@/components/LayoutAPI' import * as mdxComponents from '@/components/mdx' import { useMobileNavigationStore } from '@/components/MobileNavigation' import '@/styles/tailwind.css' import 'focus-visible' -import {LayoutDocs} from "@/components/LayoutDocs"; +import {Layout} from "@/components/Layout"; import {slugifyWithCounter} from "@sindresorhus/slugify"; function onRouteChange() { @@ -33,9 +32,9 @@ export default function App({ Component, pageProps }) { - + - + )