mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-24 03:44:26 +03:00
Add import for custom components
This commit is contained in:
parent
b861b1f6ce
commit
790e03f900
3
website/components/mdxComponents.tsx
Normal file
3
website/components/mdxComponents.tsx
Normal file
|
@ -0,0 +1,3 @@
|
|||
const mdxComponents = {}
|
||||
|
||||
export default mdxComponents
|
|
@ -1,5 +1,11 @@
|
|||
import type { AppProps } from 'next/app'
|
||||
import { MDXProvider } from '@mdx-js/react'
|
||||
import mdxComponents from '../components/mdxComponents'
|
||||
|
||||
export default function App({ Component, pageProps }: AppProps) {
|
||||
return <Component {...pageProps} />
|
||||
return (
|
||||
<MDXProvider components={mdxComponents}>
|
||||
<Component {...pageProps} />
|
||||
</MDXProvider>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user