-
-
Notifications
You must be signed in to change notification settings - Fork 7
feat: add support for using mdx files for plugin descriptions #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughThe changes integrate MDX support into the Astro project. The Astro configuration now initializes an MDX integration alongside Svelte. A new dependency for MDX is added to the package manifest. The content configuration has been updated to load both Changes
Sequence Diagram(s)sequenceDiagram
participant A as Astro Server
participant C as Config Loader
participant M as MDX Integration
participant S as Svelte Integration
A->>C: Load configuration (astro.config.mjs)
C->>M: Initialize MDX integration
C->>S: Initialize Svelte integration
A->>A: Process page requests with MDX & Svelte support
sequenceDiagram
participant P as Plugin Page
participant D as Data Provider
participant R as Renderer
P->>D: Request pluginContent
alt Valid content exists (rendered.html or body)
D->>R: Provide content details
R->>P: Render Content component
else No valid content
R->>P: Skip Content rendering
end
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (7)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This PR adds support for using .mdx files for plugin descriptions and blog posts. This will allow to use complex layouts like using tables while still being able to benefit from Astro's automatic image optimization. This is required to be able to display images in #55.