Config (klarity.toml)

Klarity uses a simple klarity.toml file for configuration.
This file is created automatically when you run klarity init.

All paths in klarity.toml are always relative to it, this means klarity.toml always marks the root of the project.


Required Fields

Example:

title = "My Docs"
output_dir = "output"
doc_dirs = ["docs"]
entry = "docs/main.md"

Optional Fields


Example klarity.toml

title = "Example Klarity site"
output_dir = "output"
base_url = "https://username.github.io/repo/"
doc_dirs = ["docs", "other"]
entry = "docs/entry.md"
ignore_out = true

[visual]
theme = "rose-pine-moon"
use_spa = true

[dev]
port = 42069

Notes