Skip to content

Commit

Permalink
add sponsor button to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 23, 2024
1 parent 241b760 commit a9539b7
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 @@ -83,6 +83,12 @@ func main() {
pg.Context.OpenURL("https://github.com/cogentcore/core")
})
})
tree.Add(p, func(w *core.Button) {
w.SetText("Sponsor").SetIcon(icons.Favorite)
w.OnClick(func(e events.Event) {
pg.Context.OpenURL("https://github.com/sponsors/cogentcore")
})
})
tree.Add(p, func(w *core.Button) {
w.SetText("Contact").SetIcon(icons.Mail)
w.OnClick(func(e events.Event) {
Expand Down

0 comments on commit a9539b7

Please sign in to comment.