diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-01 16:18:19 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-01 18:21:40 -0300 |
| commit | 151ea12251ed876aa87bb486da1bc337e25369e9 (patch) | |
| tree | 0363d90b5df6fc8b17b1737ef2793ba3825ba4d4 /vrsite/main.go | |
| parent | 8ec4e135e318c7799b2576a8729493c063da4a97 (diff) | |
| download | notevi-151ea12251ed876aa87bb486da1bc337e25369e9.tar.gz notevi-151ea12251ed876aa87bb486da1bc337e25369e9.zip | |
Diffstat (limited to 'vrsite/main.go')
| -rw-r--r-- | vrsite/main.go | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/vrsite/main.go b/vrsite/main.go index 5f9b1ef..69c90a8 100644 --- a/vrsite/main.go +++ b/vrsite/main.go @@ -11,7 +11,9 @@ // repository is only ever read, never modified. // // Theme comes from a Zed theme JSON; per-agent colors come from the theme's -// player (collaborator) palette. +// player (collaborator) palette. Every other theme this machine has — Zed's +// and Helix's both — is offered in the picker, previewed as you move through +// it, and remembered in the browser. package main import ( @@ -69,6 +71,11 @@ and the app keeps no state of its own. Session transcripts (the conversation behind a note) are looked up by session id under -transcripts; Claude Code and Codex are found automatically. +The site is built with the two themes -theme and -light-theme name. Every +other theme installed on this machine — Zed families and Helix themes both — +is offered in the picker at the bottom of the tree: it previews as you move +through it, and the browser remembers what you settled on. + flags: ` @@ -112,15 +119,16 @@ func main() { } theme := loadTheme(*themePath, *themeName, "dark") light := loadTheme(*lightPath, *lightName, "light") + themes := newThemeSet(theme, light) if *out == "" { if *watch { fatal("-watch is for -out builds; the served app already follows the log") } - serve(*addr, *logPath, repoAbs, *title, username(*who), strings.Split(*roots, ","), theme, light) + serve(*addr, *logPath, repoAbs, *title, username(*who), strings.Split(*roots, ","), theme, light, themes) return } - build := func() { buildSite(*logPath, repoAbs, *out, *title, theme, light) } + build := func() { buildSite(*logPath, repoAbs, *out, *title, theme, light, themes) } build() if !*watch { return |
