From d7cdc83d315568e2430ee14835dc185220a6fb29 Mon Sep 17 00:00:00 2001 From: Kai O'Reilly Date: Tue, 23 Jul 2024 11:07:22 -0700 Subject: [PATCH] add setup button to docs --- docs/docs.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/docs.go b/docs/docs.go index 691f4230f4..7b3bda1022 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -59,6 +59,12 @@ func main() { htmlcore.WikilinkBaseURL = "cogentcore.org/core" b.AddAppBar(pg.MakeToolbar) b.AddAppBar(func(p *tree.Plan) { + tree.Add(p, func(w *core.Button) { + w.SetText("Setup").SetIcon(icons.Download) + w.OnClick(func(e events.Event) { + pg.Context.OpenURL("/setup") + }) + }) tree.Add(p, func(w *core.Button) { w.SetText("Playground").SetIcon(icons.PlayCircle) w.OnClick(func(e events.Event) {