markdown-ssg
v0.1.0
Published
Fast, minimal static site generator. Markdown and MDX to HTML with zero configuration.
Downloads
4
Maintainers
Readme
markdown-ssg
Minimal static site generator. Converts markdown files to clean HTML with simple templating.
Installation
pnpm install -g markdown-ssgUsage
# Build site
markdown-ssg build ./content ./dist
# Watch mode (rebuilds on file changes)
markdown-ssg watch ./content ./distSupported Formats
.md- Standard markdown files- ~~
.mdx- Markdown with JSX components~~
~~MDX files support React components and JSX expressions for interactive content.~~
Project Structure
content/
├── index.md[x]
├── about.md[x]
└── posts/
└── hello.md[x]Outputs to:
dist/
├── index.html
├── about.html
└── posts/
└── hello.htmlTemplates
Place a template.html in your content directory with {{content}} and {{title}} placeholders.
Default template is used if none provided.
Licence
This project adheres the MIT license and is copyrighted to Keira Hopkins. Read more about the license
