Skip to content
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

[migration guide] Moving to MDX does NOT require changing layout #1149

Merged
merged 6 commits into from
Jul 30, 2022

Conversation

sarah11918
Copy link
Member

@sarah11918 sarah11918 commented Jul 28, 2022

  • New or updated content

relies on withastro/astro#4088

Since @bholmesdev gave us layout: in MDX, we no longer have to tell people to use a Layout component when converting their .md files to .mdx

This removes that step, and updates the MDX code sample to show no <Layout> component being used, in favour of layout: in the frontmatter (which should be what they had before).

NOTE: While there is more exciting MDX layout stuff possible now, for the purposes of just explicitly explaining how to convert an existing Astro .md file to a working .mdx file, we don't need to mention that.

@netlify
Copy link

netlify bot commented Jul 28, 2022

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit a24d8fc
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/62e51e9e20ea80000822ed60
😎 Deploy Preview https://deploy-preview-1149--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@hippotastic
Copy link
Contributor

LGTM! We should of course wait until the feature has actually been released. :)

Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging as the layout feature went out last night in @astrojs/mdx v0.4.0.

@sarah11918 sarah11918 merged commit 2672e3e into main Jul 30, 2022
@sarah11918 sarah11918 deleted the sarah11918-patch-mdx-layout branch July 30, 2022 12:11
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.

3 participants