From 21b25da59cb21bd2729ebd28a52c255061805124 Mon Sep 17 00:00:00 2001 From: ajnart Date: Thu, 8 May 2025 22:52:01 +0200 Subject: [PATCH 1/3] fix position for carbon --- src/theme/EditThisPage/index.tsx | 16 ---------------- src/theme/Footer/index.tsx | 18 ++++++++++++++++++ src/theme/TOCItems/index.tsx | 1 - 3 files changed, 18 insertions(+), 17 deletions(-) delete mode 100644 src/theme/EditThisPage/index.tsx create mode 100644 src/theme/Footer/index.tsx diff --git a/src/theme/EditThisPage/index.tsx b/src/theme/EditThisPage/index.tsx deleted file mode 100644 index a749f0d0..00000000 --- a/src/theme/EditThisPage/index.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import type { WrapperProps } from '@docusaurus/types'; -import { Carbon } from '@site/src/components/carbon'; -import EditThisPage from '@theme-original/EditThisPage'; -import type EditThisPageType from '@theme/EditThisPage'; -import type { ReactNode } from 'react'; - -type Props = WrapperProps; - -export default function EditThisPageWrapper(props: Props): ReactNode { - return ( - <> - - - - ); -} diff --git a/src/theme/Footer/index.tsx b/src/theme/Footer/index.tsx new file mode 100644 index 00000000..28e8935b --- /dev/null +++ b/src/theme/Footer/index.tsx @@ -0,0 +1,18 @@ +import type { WrapperProps } from '@docusaurus/types'; +import { Carbon } from '@site/src/components/carbon'; +import Footer from '@theme-original/Footer'; +import type FooterType from '@theme/Footer'; +import type { ReactNode } from 'react'; + +type Props = WrapperProps; + +export default function FooterWrapper(props: Props): ReactNode { + return ( + <> +
+ +
+