A MoonBit-first static site and documentation generator for reusable project docs.
moon run src/cmd/moonpressnode _build/js/debug/build/cmd/moonpress/moonpress.js build docs --out site
node _build/js/debug/build/cmd/moonpress/moonpress.js build docs --out site --base-url https://example.com/moonpress/
node _build/js/debug/build/cmd/moonpress/moonpress.js dev docs --out site --port 8080
node _build/js/debug/build/cmd/moonpress/moonpress.js clean --out sitemoon check
moon fmt --check
moon info
moon testmoon login
moon package
moon publishpub(all) struct Document {
source_path : String
route : String
front_matter : FrontMatter
body : String
}pub(all) struct FrontMatter {
title : String
description : String
order : Int
draft : Bool
}pub(all) struct NavItem {
title : String
route : String
depth : Int
}pub(all) struct PagePlan {
source_path : String
route : String
output_path : String
title : String
description : String
order : Int
lang : String
draft : Bool
}pub(all) struct SearchEntry {
title : String
route : String
description : String
text : String
}fn build_site_for_lang(sources : Array[PageSource], config : SiteConfig, lang : String) -> BuildResultfn page_shell_with_navigation(title : String, navigation : String, body : String) -> Stringfn page_shell_with_navigation_and_footer(title : String, lang : String, navigation : String, body : String, footer : String) -> Stringfn render_language_switcher(current_lang : String, route : String) -> Stringfn render_page_with_chrome(title : String, lang : String, navigation : String, markdown : String, footer : String) -> Stringfn render_page_with_navigation(title : String, navigation : String, markdown : String) -> StringInstall
Download zipA MoonBit-first static site and documentation generator for reusable project docs.