Skip to content

Commit 199c592

Browse files
committed
Fix MDX artifacts by configuring Docusaurus to process .md as MDX
Instead of renaming files to .mdx, configure Docusaurus to treat all .md files as MDX. This is cleaner because: - No file renames needed - .md files render nicely in GitLab/GitHub previews - Single config change fixes all current and future cases Changed markdown.format from 'detect' to 'mdx' in docusaurus.config.js. Reverted all previous .md -> .mdx renames (10 files).
1 parent af1984a commit 199c592

11 files changed

Lines changed: 2 additions & 2 deletions

File tree

File renamed without changes.

docs/dblab-howtos/administration/install-dle-manually.mdx renamed to docs/dblab-howtos/administration/install-dle-manually.md

File renamed without changes.

docs/dblab-howtos/administration/run-database-lab-on-mac.mdx renamed to docs/dblab-howtos/administration/run-database-lab-on-mac.md

File renamed without changes.

docs/dblab-howtos/joe-bot/get-database-table-index-size.mdx renamed to docs/dblab-howtos/joe-bot/get-database-table-index-size.md

File renamed without changes.

docs/dblab-howtos/joe-bot/query-activity-and-termination.mdx renamed to docs/dblab-howtos/joe-bot/query-activity-and-termination.md

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ module.exports = {
4040
organizationName: 'postgres-ai',
4141
projectName: 'docs',
4242

43-
// Use CommonMark for .md files to avoid MDX parsing issues
43+
// Treat all .md files as MDX to support imports and JSX
4444
markdown: {
45-
format: 'detect',
45+
format: 'mdx',
4646
},
4747

4848
customFields: {

0 commit comments

Comments
 (0)