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

Add Astro to site generator docs #2118

Merged
merged 18 commits into from Sep 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/docs/getting-started.server.mdx
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