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: 5 months ago
JSON representation
Static site generator powered by TypeScript, MDX, & React.
- Host: GitHub
- URL: https://github.com/ericclemmons/mdx-site
- Owner: ericclemmons
- Created: 2019-05-26T22:58:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T22:43:11.000Z (over 2 years ago)
- Last Synced: 2024-10-29T23:08:16.464Z (6 months ago)
- Topics: markdown, mdx, now, react, tailwindcss, typescript
- Language: TypeScript
- Homepage:
- Size: 2.71 MB
- Stars: 51
- Watchers: 3
- Forks: 3
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
- awesome - mdx-site - Static site generator powered by TypeScript, MDX, & React. (TypeScript)
README
![]()
S I T EStatic site generator powered by:
- `ʦ` [TypeScript][ts]
- `↓` [MDX][mdx]
- `⚛`️ [React][react]
- `♻` [hot-module-replacement][hmr]
## Getting Started
If you're starting from scratch:
1. `mkdir my-site`
1. `cd my-site`
1. `yarn init -y`
Within your project, install `mdx-site`:
- `yarn add mdx-site`

Now you're ready to run it:
- `yarn mdx-site`

- Visit .

## 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/