mdgarden Documentation
mdgarden 🌱
mdgarden turns a folder of Markdown notes into a fast, themeable static
website — search, backlinks, tags, an interactive graph view, dark mode,
math, and syntax highlighting, with no runtime framework and no native
dependencies. It speaks Obsidian-flavored Markdown, so an existing Obsidian
vault (or any pile of .md files) works out of the box.
This vault is the documentation — and it's also what we build against
during development (npm run vault:dev), so every page on the left doubles
as a real, rendered example of the feature it describes.
Start here
- Download — every install method, side by side
- Installation — npm, Homebrew, or a standalone binary
- Initial Setup — the
mdgarden initwizard, prompt by prompt - Quick Start — build your first site in under a minute
- Configuration —
mdgarden.config.json, themes, and feature flags - Updating — keep an existing install current
Guide
- Markdown Syntax — wikilinks, embeds, callouts, footnotes, frontmatter
- CLI Reference — every command and flag
- Themes & Customization — presets, custom colors, custom CSS
- Architecture — how the codebase is organized
Showcase
- Diagrams — Mermaid flowcharts, sequence diagrams, and a hand-drawn SVG
- Code Highlighting — Shiki syntax highlighting across languages
- Math — KaTeX inline and block equations
Support
- Troubleshooting — common problems and fixes
- Reporting Issues — how to file a useful bug report
- Contributing — local dev setup, tests, and PRs
About
Why mdgarden?
| 🔗 Obsidian-flavored Markdown | [[wikilinks]], ![[embeds]], > [!note] callouts, GFM, footnotes, math |
| 🖼️ Media-aware | Images, GIFs, video, and audio embeds — lazy-loaded, dimensions set automatically |
| 🪴 Obsidian Publish–style layout | Three independently scrolling panes (notes · article · graph/TOC) |
| 🧙 Interactive setup | mdgarden init asks for a name, theme, and features — no JSON to write by hand |
| 🎨 Built-in themes | default, forest, rose, nord, ink |
| 🔍 Search & navigation | Static search index, folder-tree explorer, breadcrumbs, backlinks, tags, graph |
| 🌙 Rich rendering | Dark mode, Shiki syntax highlighting, KaTeX math, lazy Mermaid diagrams |
| 📡 SEO & sharing | Social cards, robots.txt, RSS, sitemap, aliases/redirects, sub-path hosting |
| ⚡ Dev experience | mdgarden serve with live reload, a small plugin API, optional Giscus comments |
Try it
Run npm run vault:dev from the repo root, then edit any file under
test_vault/ — the page rebuilds and reloads automatically.