A generalized, production-ready starter kit for building documentation sites from Markdown. Features automatic diagram rendering, beautiful dark mode UI, and zero configuration.
- 📝 Write in Markdown: Just drop
.mdxfiles in thecontent/folder. - 📊 Auto-Diagrams: Use standard Mermaid syntax in code blocks - they render automatically!
- 🎨 Premium UI: Built-in dark mode, glassmorphism, and responsive design.
- ⚡️ Fast: Built on Next.js 14 App Router with static generation.
- 🤖 AI-Ready: Perfect for rendering output from ChatGPT, Claude, or Gemini.
-
Clone the repository
git clone https://github.com/mhmdez/markdown-site-starter.git cd markdown-site-starter -
Install dependencies
npm install
-
Run the development server
npm run dev
Open http://localhost:3000 to see your site.
-
Create a new file in
content/(e.g.,content/my-project.mdx). -
Add your markdown content.
-
To add a diagram, just use a code block with
mermaid:```mermaid graph TD A[Start] --> B[End] ```
-
Save and view at
http://localhost:3000/my-project.
- Styling: Edit
app/globals.cssto change colors and fonts. - Layout: Modify
app/layout.tsxorapp/[slug]/page.tsxto change the page structure. - Components: Customize markdown element rendering in
mdx-components.tsx.
The easiest way to deploy is to use Vercel.
- Push your code to GitHub.
- Import the project into Vercel.
- Deploy!
MIT