Skip to content

API reference demo

A library reference with a grouped sidebar and a package table.

Packages
NameVersionLinks
modootoday-coreParsing, rendering and the page model. 1.4.0
modootoday-cliThe modootoday command. 1.4.0
modootoday-lintChecks pages against the layout contracts. 0.9.2

The sidebar groups members by group:; the table lists the packages that make up the library.

Tip

Pin the packages to one minor version so the table and the members stay in step.

build

modootoday build [--drafts]

Builds the site into _site.

serve

modootoday serve [--port N]

Builds and serves the site, rebuilding on change.

Site.load

Site.load(path) -> Site

Reads the configuration and pages under path.

Site#render

site.render(page) -> String

Renders one page to HTML.

Page#data

page.data -> Hash

The page’s front matter.