ombryt

Reference

Command line

ombryt [-C <dir>] <command>

-C <dir> runs in another project directory (the one with ombryt.toml). Without a config file, the defaults are used.

build #

ombryt build [--drafts] [--strict] [--url <url>]

Builds the site into the output directory, which is emptied first. Prints the number of pages and files, the time it took, and link warnings.

Option
--draftsinclude pages with draft: true
--strictfail on broken internal links
--url <url>build for another URL than site.url, such as a preview

The exit code is 0 on success and 1 on any error.

serve #

ombryt serve [--port 8000] [--host 127.0.0.1] [--drafts] [--open]

Builds, serves the output, watches the source directory and ombryt.toml, rebuilds on changes and reloads open pages. A failed rebuild prints the error and keeps the last good build. --host 0.0.0.0 serves on the local network; --open opens a browser.

init #

ombryt init [dir] [--force]

Writes a starter site into dir (default: the current directory). It stops if there is an ombryt.toml already; --force overwrites the starter's files and leaves others alone.

new #

ombryt new "Title" [--section posts] [--draft]

Makes src/<section>/<today>_<slug>.md with front matter, and prints its path.

themes #

ombryt themes

Lists the syntax highlighting themes, for [highlight] theme and light_theme.