Skip to content

Commit

Permalink
cleanup layout
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Oct 24, 2023
1 parent c6762a2 commit 15c798e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/docusaurus-theme-classic/src/theme/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@ import React from 'react';
import clsx from 'clsx';
import ErrorBoundary from '@docusaurus/ErrorBoundary';
import {
PageMetadata,
SkipToContentFallbackId,
ThemeClassNames,
} from '@docusaurus/theme-common';
import {useKeyboardNavigation} from '@docusaurus/theme-common/internal';
import SkipToContent from '@theme/SkipToContent';
import AnnouncementBar from '@theme/AnnouncementBar';
import Navbar from '@theme/Navbar';
import Footer from '@theme/Footer';
import LayoutProvider from '@theme/Layout/Provider';
import ErrorPageContent from '@theme/ErrorPageContent';
import type {Props} from '@theme/Layout';
Expand All @@ -26,25 +21,14 @@ import styles from './styles.module.css';
export default function Layout(props: Props): JSX.Element {
const {
children,
noFooter,
wrapperClassName,
// Not really layout-related, but kept for convenience/retro-compatibility
title,
description,
} = props;

useKeyboardNavigation();

return (
<LayoutProvider>
<PageMetadata title={title} description={description} />

<SkipToContent />

<AnnouncementBar />

<Navbar />

<div
id={SkipToContentFallbackId}
className={clsx(
Expand All @@ -56,8 +40,6 @@ export default function Layout(props: Props): JSX.Element {
{children}
</ErrorBoundary>
</div>

{!noFooter && <Footer />}
</LayoutProvider>
);
}

0 comments on commit 15c798e

Please sign in to comment.