MoonBit-native static site generator for technical publishing.
Yuegui treats Markdown (stable) and Typst (experimental) as first-class source
formats in a shared site graph. It provides strong build-time diagnostics and
emits fast static HTML.
Features
CommonMark via mizchi/markdown — GFM tables, strikethrough, fenced code with language annotations
Wikilinks — [[/page/]] resolves to <a href="/page/"> with build-time broken link detection
Heading anchors — <h1>-<h6> automatically get id attributes for permalink support
Frontmatter metadata — title, description, date, author, tags propagate from frontmatter to templates
The wrapper scripts (yuegui.bat / yuegui.sh) let you run yuegui build
instead of typing moon run . -- build.
As a contributor — develop Yuegui engine
git clone https://github.com/Anxiu0101/yuegui
cd yuegui
moon run cmd/main -- build # build test content
moon run cmd/main -- check # validate without output
moon run cmd/main -- init x # test scaffolding
CLI Commands
Command
Description
yuegui init <name>
Scaffold a new site project
yuegui build
Build static site to output directory
yuegui check
Validate content, report diagnostics
yuegui dev
Start preview server with live reload (needs native backend)
yuegui new page <slug>
Scaffold a new page stub
yuegui new post <slug>
Scaffold a new blog post stub
All commands run via moon run (WASM backend) by default — no C compiler
needed. The dev command requires --target native for HTTP serving.
Native Build
Build a standalone executable for environments without MoonBit toolchain:
月桂 Yuegui
MoonBit-native static site generator for technical publishing.
Yuegui treats Markdown (stable) and Typst (experimental) as first-class source formats in a shared site graph. It provides strong build-time diagnostics and emits fast static HTML.
Features
[[/page/]]resolves to<a href="/page/">with build-time broken link detection<h1>-<h6>automatically getidattributes for permalink supportPrerequisites
gccor MSVCcl.exe) — only needed fordev/serve(HTTP preview server)Quick Start
As a user — create a new site
Your site is a MoonBit project:
The wrapper scripts (
yuegui.bat/yuegui.sh) let you runyuegui buildinstead of typingmoon run . -- build.As a contributor — develop Yuegui engine
CLI Commands
yuegui init <name>yuegui buildyuegui checkyuegui devyuegui new page <slug>yuegui new post <slug>All commands run via
moon run(WASM backend) by default — no C compiler needed. Thedevcommand requires--target nativefor HTTP serving.Native Build
Build a standalone executable for environments without MoonBit toolchain:
Output:
_build/native/debug/build/cmd/main/main.exeModules
License
Yuegui is licensed under Apache-2.0.
Third-party software bundled in this project (see THIRD_PARTY_NOTICES.md):