File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
src/theme/DocItem/Content Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 11import { useDoc } from '@docusaurus/plugin-content-docs/client' ;
22import { useLocation } from '@docusaurus/router' ;
3- import { ThemeClassNames } from '@docusaurus/theme-common' ;
43import Heading from '@theme/Heading' ;
54import MDXContent from '@theme/MDXContent' ;
6- import clsx from 'clsx' ;
75import React from 'react' ;
86
97import 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}
You can’t perform that action at this time.
0 commit comments