Static site generator powered by:
ʦ
TypeScript↓
MDX⚛
️ React♻
hot-module-replacement
If you're starting from scratch:
mkdir my-site
cd my-site
yarn init -y
Within your project, install mdx-site
:
yarn add mdx-site
Now you're ready to run it:
yarn mdx-site
- Visit http://localhost:3000/.
-
Add pages to
content/:page/index.mdx
-
export
data viacontent/:page/index.tsx
-
Customize HTML template:
public/index.html
-
Customize components:
components/:tag.tsx
-
🚀 Publish to
dist
:yarn mdx-site build
All changes are hot-reloaded. Refresh for changes!
yarn mdx-site build
- Publish
dist
as a static site using Netlify, Now, or whatever you'd like.