Architecture

Lagrange is a single crate (lagrange-library) shipping a library and a lagrange CLI.

Pipeline

markdown -> pest parser -> AST (Block / Inline)
                              |
                              v
                 tairitsu VDom (VNode) -> render_to_html -> HTML

Modules

ModuleResponsibility
markdownpest grammar, AST, block + inline parser
renderAST -> tairitsu VNode -> HTML string
themeCSS generated from the hikari palette
sitewalks the docs tree, renders each page, writes a static site
clithe lagrange binary

The closed loop

Lagrange renders its own documentation: just docs runs lagrange build docs, and the CI workflow deploys the result. If you are reading this on the published site, it was produced by Lagrange.

Built on