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

Mdx docs improved after changing things which were wrong #36067

Closed
wants to merge 23 commits into from
Closed

Mdx docs improved after changing things which were wrong #36067

wants to merge 23 commits into from

Conversation

Markos-Th09
Copy link
Contributor

Documentation / Examples

@@ -64,6 +85,14 @@ The following steps outline how to setup `@next/mdx` in your Next.js project:
- package.json
```

## next-mdx-remote
Copy link
Member

Choose a reason for hiding this comment

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

These two are intentionally not mentioned as they're recommending to eval external sources that are transformed into JS.

Copy link
Member

Choose a reason for hiding this comment

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

Remove them from this PR.

@@ -98,6 +119,26 @@ author: 'Rich Haines'
# My MDX page
```

```js
Copy link
Member

Choose a reason for hiding this comment

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

This code block shows how to add remarkFrontmatter but the line above it shows how to add metadata using export const meta which does not require any extra configuration. Maybe this can be in it's own section?

@@ -208,5 +249,8 @@ If you use it across the site you may want to add the provider to `_app.js` so a

- [MDX](https://mdxjs.com)
- [`@next/mdx`](https://www.npmjs.com/package/@next/mdx)
- [next-mdx-remote](https://github.com/hashicorp/next-mdx-remote)
Copy link
Member

Choose a reason for hiding this comment

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

Same as my earlier comment.

@Markos-Th09 Markos-Th09 closed this by deleting the head repository Aug 20, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants