chore: fix path and samples for lexical-mdx tests (#9433)

Later we could add better examples that test complex use cases, but at
least this allows the code to compile.
This commit is contained in:
Germán Jabloñski
2024-11-22 11:55:39 -03:00
committed by GitHub
parent 9e31e17e31
commit 251c4c30d7
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
export const docsBasePath = '/Users/alessio/Documents/payloadcms-mdx-mock/docs' import path from 'path'
import { fileURLToPath } from 'url'
export const docsBasePath =
typeof window === 'undefined'
? path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../sampleDocs')
: null
export const languages = { export const languages = {
ts: 'TypeScript', ts: 'TypeScript',
plaintext: 'Plain Text', plaintext: 'Plain Text',

View File

@@ -0,0 +1,3 @@
# You can write MDX here
Write whatever content you want for testing purposes