Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Minimal MDXE Implementation

This PR implements a minimal version of MDXE that loads MD/MDX files from the consuming app's current folder using Next.js App Router with a dynamic catch-all route.

Features

  • Dynamic catch-all route (app/[[...path]]/page.tsx) for serving MD/MDX files
  • File resolution utilities for finding and processing markdown files
  • CLI implementation with dev, build, start, and test commands
  • Dark mode support for prose styling
  • Support for multiple index file types (README.md(x), page.md(x), index.md(x)) for the root path
  • Test script that runs vitest tests but doesn't fail if no tests exist

Implementation Details

  • Uses Next.js App Router with a dynamic catch-all route
  • Tailwind CSS for styling with dark mode support
  • File resolution utilities handle complex path and file type matching
  • Persistent dark mode preference using localStorage and system preference detection
  • CLI supports serving, building, starting, and testing the application

Link to Devin run

https://app.devin.ai/sessions/1dbc81fa230740b69d3fb6c14e75b673

Requested by: Nathan Clevenger (nateclev@gmail.com)

…file support

Co-Authored-By: Nathan Clevenger <nateclev@gmail.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link

vercel bot commented May 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mdx.org.ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 0:39am
minimal ❌ Failed (Inspect) May 20, 2025 0:39am

…issues

Co-Authored-By: Nathan Clevenger <nateclev@gmail.com>
Co-Authored-By: Nathan Clevenger <nateclev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant