Global Config (nanoss.toml)

Nanoss supports a project-level config file at repository root: nanoss.toml.

Current schema

[build]
base_path = "/nanoss"
site_domain = "https://hsiangnianian.github.io"

[build.images]
enabled = true
generate_webp = true
generate_avif = false
widths = [480, 768, 1200]

[build.data_sources.hn]
url = "https://hacker-news.firebaseio.com/v0/topstories.json"
method = "GET"
fail_fast = false

[build.i18n]
locales = ["en", "zh"]
default_locale = "en"
prefix_default_locale = false

[server]
mount_path = "/nanoss"

[theme]
name = "my-theme"

[plugins]
enabled = ["demo-plugin"]
config = { env = "dev", feature_flags = ["toc", "search"] }

Notes