Skip to content

Commit

Permalink
chore: convert Metadata into a component
Browse files Browse the repository at this point in the history
  • Loading branch information
LiCaoZ authored Nov 22, 2024
1 parent 1aa5bd9 commit 21556ad
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ const config: Config = {
} satisfies Preset.ThemeConfig,
clientModules: [
require.resolve('./src/clientModules/addWtMcId.ts'),
require.resolve('./src/clientModules/Metadata.tsx'),
]
};

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/theme/DocItem/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React from 'react';
import Layout from '@theme-original/DocItem/Layout';
import type { Props } from '@theme/DocItem/Layout';
import Metadata from '../../clientModules/Metadata';
import Metadata from '../../components/Metadata';

export default function LayoutWrapper(props: Props): JSX.Element {
return (
Expand Down

0 comments on commit 21556ad

Please sign in to comment.