A modern documentation and static site generator for the MoonBit ecosystem, inspired by mdBook and Hakyll
just init
just build
just testfn main {
mopress([
Glob(
"*.markdown",
Text(raw => {
raw
|> set_extension("html")
|> render_markdown_and_frontmatter
|> load_and_apply_template("test/src/templates/default.html")
|> import_js("./custom.js")
|> import_css("./custom.css")
|> use_js("console.log('hi, moonbit! hi, mopress!')")
|> use_css("some css code")
|> identify
}),
),
Glob("images/*", Binary(raw => raw |> identify)),
Glob("css/*", Copy),
])
}Install
Download zipA modern documentation and static site generator for the MoonBit ecosystem, inspired by mdBook and Hakyll