From e4ac5326a42e45281ac8cdcf45757330bae007e9 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Thu, 23 Jul 2026 14:10:09 +0200 Subject: config: add web_theme/web_port fields Add WebTheme (default: "transfiguration") and WebPort (default: 0) to Config for the upcoming lectio-web binary. WebTheme resolves theme names (built-in or user files) later in internal/web; WebPort 0 means auto-pick a free port. - Updated Config struct with new fields - Set defaults in Default() - Updated embedded seed config.toml with documentation - Added TDD tests: TestWebDefaults and TestWebLoadsFromSeed - Existing tests (TestLoadSeeds, TestLoadOverride) still pass --- internal/config/config.toml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/config/config.toml') diff --git a/internal/config/config.toml b/internal/config/config.toml index d31e2c4..4ad3289 100644 --- a/internal/config/config.toml +++ b/internal/config/config.toml @@ -6,6 +6,8 @@ default_version = "pl" # TUI start / `lectio show` default width = 0 # CLI wrap width; 0 = detect terminal all = false # default to all parts (true) or just the gospel (false) offline = false # true = never fetch; read only harvested sigla + cache +web_theme = "transfiguration" # built-in order/season theme or a user theme in ~/.config/lectio/themes/ +web_port = 0 # lectio-web port; 0 = auto-pick a free port # Which parts to show. Both tables are commented out -> every part is shown. # Uncomment a table and set a part to false to hide it; parts you don't list -- cgit v1.3