Skip to content

Commit

Permalink
add setup button to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 23, 2024
1 parent a9539b7 commit d7cdc83
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d7cdc83

Please sign in to comment.