Skip to content

Commit a475915

Browse files
Clear DocItem template
1 parent c92d674 commit a475915

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/theme/DocItem/Content/index.js

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

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

5452
return (
55-
<div className={clsx(ThemeClassNames.docs.docMarkdown, 'markdown')}>
56-
<header>
57-
{syntheticTitle && <Heading as="h1">{syntheticTitle}</Heading>}
58-
{shouldShowLLMButtons && <LLMButtons />}
59-
<MDXContent>{children}</MDXContent>
60-
</header>
61-
</div>
53+
<>
54+
{syntheticTitle && <Heading as="h1">{syntheticTitle}</Heading>}
55+
{shouldShowLLMButtons && <LLMButtons />}
56+
<MDXContent>{children}</MDXContent>
57+
</>
6258
);
6359
}

0 commit comments

Comments
 (0)