docs: move edit date to footer (#11667)

* docs: move edit date to footer

* fix build error
This commit is contained in:
Shahed Nasser
2025-02-28 16:27:42 +02:00
committed by GitHub
parent 228b7b608d
commit bf67f69f45
23 changed files with 183 additions and 121 deletions
+1 -3
View File
@@ -9,11 +9,9 @@ export type RootLayoutProps = {
bodyClassName?: string
showToc?: boolean
sidebarProps?: SidebarProps
showPagination?: boolean
feedbackComponent?: React.ReactNode
editComponent?: React.ReactNode
showBreadcrumbs?: boolean
ProvidersComponent: React.FC<{ children: React.ReactNode }>
footerComponent?: React.ReactNode
} & MainContentLayoutProps
export const RootLayout = ({
+3 -7
View File
@@ -1,13 +1,11 @@
import React from "react"
import { RootLayout, RootLayoutProps } from "./root"
import clsx from "clsx"
import { Breadcrumbs, Pagination } from ".."
import { Breadcrumbs } from ".."
export const TightLayout = ({
children,
showPagination,
feedbackComponent,
editComponent,
footerComponent,
showBreadcrumbs = true,
...props
}: RootLayoutProps) => {
@@ -24,9 +22,7 @@ export const TightLayout = ({
>
{showBreadcrumbs && <Breadcrumbs />}
{children}
{feedbackComponent}
{showPagination && <Pagination />}
{editComponent}
{footerComponent}
</div>
</RootLayout>
)
+3 -7
View File
@@ -1,13 +1,11 @@
import React from "react"
import { RootLayout, RootLayoutProps } from "./root"
import clsx from "clsx"
import { Breadcrumbs, Pagination } from ".."
import { Breadcrumbs } from ".."
export const WideLayout = ({
children,
showPagination,
feedbackComponent,
editComponent,
footerComponent,
showBreadcrumbs = true,
...props
}: RootLayoutProps) => {
@@ -20,9 +18,7 @@ export const WideLayout = ({
<main className={clsx("relative mt-4 w-full flex-1 lg:mt-7")}>
{showBreadcrumbs && <Breadcrumbs />}
{children}
{feedbackComponent}
{showPagination && <Pagination />}
{editComponent}
{footerComponent}
</main>
</RootLayout>
)