Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ericclemmons/mdx-site

Static site generator powered by TypeScript, MDX, & React.
https://github.com/ericclemmons/mdx-site

markdown mdx now react tailwindcss typescript

Last synced: about 1 month ago
JSON representation

Static site generator powered by TypeScript, MDX, & React.

Awesome Lists containing this project

README

        


mdx
 S I T E

Static site generator powered by:

- `ʦ` [TypeScript][ts]
- `↓` [MDX][mdx]
- `⚛`️ [React][react]
- `♻` [hot-module-replacement][hmr]

![lighthouse score](lighthouse.png)

## Getting Started

If you're starting from scratch:

1. `mkdir my-site`
1. `cd my-site`
1. `yarn init -y`

![Picture of previous steps](step-1.png)

Within your project, install `mdx-site`:

- `yarn add mdx-site`

![Picture of previous step](step-2.png)

Now you're ready to run it:

- `yarn mdx-site`

![Picture of previous step](step-3.png)

- Visit .

![Picture of previous step](welcome.png)

## Authoring

1. Add pages to `content/:page/index.mdx`

1. `export` data via `content/:page/index.tsx`

1. Customize HTML template: `public/index.html`

1. Customize components: `components/:tag.tsx`

1. 🚀 Publish to `dist`:

`yarn mdx-site build`

**All changes are [hot-reloaded][hmr]**. Refresh for changes!

## Deployment

1. `yarn mdx-site build`
1. Publish `dist` as a static site using Netlify, Now, or whatever you'd like.

## Author

- [Eric Clemmons](ericclemmons.com)

[hmr]: https://github.com/sidorares/hot-module-replacement
[mdx]: https://mdxjs.com/
[now]: https://zeit.co/now
[react]: https://reactjs.org/
[site]: https://ericclemmons.com/
[ts]: https://www.typescriptlang.org/