Skip to content

site: Rename docs from .md to .mdx - #1805

Closed
askoufis wants to merge 1 commit into
astro/fixture-image-typesfrom
astro/docs-mdx
Closed

askoufis wants to merge 1 commit into
astro/fixture-image-typesfrom
astro/docs-mdx

Conversation

@askoufis

@askoufis askoufis commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The docs are already compiled as MDX, so this renames them to say so. It also gets the rename out of the way before the Astro migration, where MDX is parsed more strictly.

  • Renames every page in site/docs from .md to .mdx, and updates the manifest generator to match. Webpack already handles both extensions.
  • Escapes two bare < characters as &lt;, in the Next.js and @vanilla-extract/dynamic pages. Newer versions of MDX treat a bare < as the start of a JSX tag.
  • Applies the markdown Prettier options to .mdx files.
  • Updates CONTRIBUTING.md to describe the docs as MDX, including the escaping rules and ```ts compiled code blocks.

Stack created with GitHub Stacks CLI • Give Feedback 💬

The docs are already compiled as MDX, so this renames them to say so. It also gets the rename out of the way before the Astro migration, where MDX is parsed more strictly.

- Renames every page in `site/docs` from `.md` to `.mdx`, and updates the manifest generator to match. Webpack already handles both extensions.
- Escapes two bare `<` characters as `&lt;`, in the Next.js and `@vanilla-extract/dynamic` pages. Newer versions of MDX treat a bare `<` as the start of a JSX tag.
- Applies the markdown Prettier options to `.mdx` files.
- Updates `CONTRIBUTING.md` to describe the docs as MDX, including the escaping rules and ` ```ts compiled ` code blocks.
@askoufis
askoufis added this pull request to stack #1804 November 3, 2026 11:29
@changeset-bot

changeset-bot Bot commented Nov 3, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f5c433d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@askoufis askoufis closed this Nov 8, 2026
@askoufis
askoufis deleted the astro/docs-mdx branch November 8, 2026 10:36
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