Skip to content

Commit

Permalink
Add Astro to site generator docs
Browse files Browse the repository at this point in the history
Closes GH-2118.

Reviewed-by: Titus Wormer <tituswormer@gmail.com>
Reviewed-by: Sarah Rainsberger <sarah@rainsberger.ca>

Co-authored-by: Titus Wormer <tituswormer@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
  • Loading branch information
3 people authored Sep 6, 2022
1 parent 996771a commit 56d7066
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/docs/getting-started.server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,25 @@ Which in turn lets us choose whether to use the `@mdx-js/mdx` or

### Site generators

#### Astro

[Astro](https://astro.build/) has an [official MDX integration](https://docs.astro.build/guides/integrations-guide/mdx/).
You can add the integration with the Astro CLI (recommended):

```sh
npx astro add mdx
```

This base setup allows you to import markdown, Astro components,
and other MDX files as components. To use
other UI framework components in your MDX files
(e.g. Preact, Vue, Svelte and more),
see Astro’s [Framework components](https://docs.astro.build/en/core-concepts/framework-components/) guide.

To learn how to configure layouts, YAML frontmatter, and set up Astro’s
syntax highlighting, [see their MDX
integration docs](https://docs.astro.build/guides/integrations-guide/mdx/).

#### Create React App (CRA)

<Note type="info">
Expand Down

1 comment on commit 56d7066

@vercel
Copy link

@vercel vercel bot commented on 56d7066 Sep 6, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

mdx – ./

mdx-mdx.vercel.app
mdxjs.com
mdx-git-main-mdx.vercel.app
v2.mdxjs.com

Please sign in to comment.