Skip to content

Commit

Permalink
update doc (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
otakakot authored Dec 1, 2024
1 parent 25ff169 commit 6a5397b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/web/documents/github-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ A static website can be generated with the help of the [GenerateStaticWebsite()]

```go
func main() {
app.Route("/", &hello{})
app.Route("/hello"), &hello{})
app.Route("/", func() app.Composer { return &hello{} })
app.Route("/hello", func() app.Composer { return &hello{} })
app.RunWhenOnBrowser()

err := app.GenerateStaticWebsite(".", &app.Handler{
Expand Down Expand Up @@ -66,8 +66,8 @@ In that scenario, the [Handler](/reference#Handler) resource provider must be ch

```go
func main() {
app.Route("/", &hello{})
app.Route("/hello"), &hello{})
app.Route("/", func() app.Composer { return &hello{} })
app.Route("/hello", func() app.Composer { return &hello{} })
app.RunWhenOnBrowser()

err := app.GenerateStaticWebsite(".", &app.Handler{
Expand Down

0 comments on commit 6a5397b

Please sign in to comment.