Skip to content

Commit c60a725

Browse files
Remove docitem
1 parent a475915 commit c60a725

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/theme/DocItem/Content/index.js renamed to src/theme/DocItem/Ignore/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { useDoc } from '@docusaurus/plugin-content-docs/client';
22
import { useLocation } from '@docusaurus/router';
3+
import { ThemeClassNames } from '@docusaurus/theme-common';
34
import Heading from '@theme/Heading';
45
import MDXContent from '@theme/MDXContent';
6+
import clsx from 'clsx';
57
import React from 'react';
68

79
import LLMButtons from '../../../components/LLMButtons';
@@ -50,10 +52,10 @@ export default function DocItemContent({ children }) {
5052
const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path));
5153

5254
return (
53-
<>
55+
<div className={ThemeClassNames.docs.docMarkdown}>
5456
{syntheticTitle && <Heading as="h1">{syntheticTitle}</Heading>}
5557
{shouldShowLLMButtons && <LLMButtons />}
5658
<MDXContent>{children}</MDXContent>
57-
</>
59+
</div>
5860
);
5961
}

0 commit comments

Comments
 (0)