Minimal Static Site Generator
A minimal, file-based static site generator based on Next.js and MDX.
Minimal Static Site Generator (mSSG) is a minimal static site framework
built on Next.js, MDX, and shadcn/ui. Content lives as plain .mdx files on
disk, without databases or CMS's.
Checkout the repository on GitHub.
Features
- File-based routing — URL paths map directly to
content/on the filesystem - MDX — write content in Markdown with custom directives
- GitHub Flavored Markdown — tables, strikethrough, task lists, and more
- Static generation — every page is pre-rendered at build time
- Dark mode — follows system settings
- Math — KaTeX rendering via
remark-math+rehype-katex - Syntax highlighting — Shiki with
github-light/github-darkthemes - Sitemap — auto-generated
/sitemap.xmlfrom all content routes
Documentation
Start from Getting Started.
- guides/customizationCustomization
How to customize the site's appearance, fonts, and theme tokens.
Read - guides/getting-startedGetting Started
Fork, configure, and run mSSG in minutes.
Read - guides/writing-contentWriting Content
How the file-based content model works and how to write MDX pages.
Read
- reference/configurationConfiguration
Reference for site.config.ts and the SiteConfig schema.
Read - reference/frontmatterFrontmatter
Complete reference for all supported frontmatter fields.
Read - reference/mdx-directivesMDX Directives
Overview of all built-in directives available in content files.
Read - reference/sidebarSidebar
How to configure the sidebar navigation using content/_nav.mdx and the nav-section directive family.
Read
Directives
Each built-in directive has its own reference and examples.
Visit Directives for an exhaustive list.