@@ -6,9 +6,10 @@ import Link from 'next/link'
66import { notFound } from 'next/navigation'
77import { PageNavigationArrows } from '@/components/docs-layout/page-navigation-arrows'
88import { TOCFooter } from '@/components/docs-layout/toc-footer'
9+ import { LLMCopyButton } from '@/components/page-actions'
910import { StructuredData } from '@/components/structured-data'
1011import { CodeBlock } from '@/components/ui/code-block'
11- import { CopyPageButton } from '@/components/ui/copy-page-button '
12+ import { Heading } from '@/components/ui/heading '
1213import { source } from '@/lib/source'
1314
1415export default async function Page ( props : { params : Promise < { slug ?: string [ ] ; lang : string } > } ) {
@@ -202,7 +203,7 @@ export default async function Page(props: { params: Promise<{ slug?: string[]; l
202203 < div className = 'relative mt-6 sm:mt-0' >
203204 < div className = 'absolute top-1 right-0 flex items-center gap-2' >
204205 < div className = 'hidden sm:flex' >
205- < CopyPageButton markdownUrl = { `${ page . url } .mdx` } />
206+ < LLMCopyButton markdownUrl = { `${ page . url } .mdx` } />
206207 </ div >
207208 < PageNavigationArrows previous = { neighbours ?. previous } next = { neighbours ?. next } />
208209 </ div >
@@ -214,6 +215,12 @@ export default async function Page(props: { params: Promise<{ slug?: string[]; l
214215 components = { {
215216 ...defaultMdxComponents ,
216217 CodeBlock,
218+ h1 : ( props ) => < Heading as = 'h1' { ...props } /> ,
219+ h2 : ( props ) => < Heading as = 'h2' { ...props } /> ,
220+ h3 : ( props ) => < Heading as = 'h3' { ...props } /> ,
221+ h4 : ( props ) => < Heading as = 'h4' { ...props } /> ,
222+ h5 : ( props ) => < Heading as = 'h5' { ...props } /> ,
223+ h6 : ( props ) => < Heading as = 'h6' { ...props } /> ,
217224 } }
218225 />
219226 </ DocsBody >
0 commit comments