From 9578b627fdd7f83f2cb8314743eefd37ded3c76c Mon Sep 17 00:00:00 2001
From: Anton Gilgur <4970083+agilgur5@users.noreply.github.com>
Date: Tue, 25 Nov 2025 05:16:01 -0500
Subject: [PATCH 01/25] [v2] docs(how): fix inconsistent indentation (#4733)
* [v2] docs(how): fix inconsistent indentation
- several places had mixed indentation (tabs _and_ spaces)
- some lines had incorrect indentation, partially due to the above
* add changelog entry per PR template
---
website/docs/howdoesitwork.mdx | 22 ++++++++++------------
website/src/pages/changelog.mdx | 4 ++++
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/website/docs/howdoesitwork.mdx b/website/docs/howdoesitwork.mdx
index 48243f4eb..bdfbcb278 100644
--- a/website/docs/howdoesitwork.mdx
+++ b/website/docs/howdoesitwork.mdx
@@ -63,17 +63,17 @@ func main() {
type App struct {
- ctx context.Context
+ ctx context.Context
}
func (b *App) startup(ctx context.Context) {
- b.ctx = ctx
+ b.ctx = ctx
}
func (b *App) shutdown(ctx context.Context) {}
func (b *App) Greet(name string) string {
- return fmt.Sprintf("Hello %s!", name)
+ return fmt.Sprintf("Hello %s!", name)
}
```
@@ -178,18 +178,18 @@ func main() {
type App struct {
- ctx context.Context
+ ctx context.Context
}
func (a *App) Greet(name string) string {
- return fmt.Sprintf("Hello %s!", name)
+ return fmt.Sprintf("Hello %s!", name)
}
```
You may bind as many structs as you like. Just make sure you create an instance of it and pass it in `Bind`:
```go {10-12}
- //...
+ //...
err := wails.Run(&options.App{
Title: "Basic Demo",
Width: 1024,
@@ -203,7 +203,6 @@ You may bind as many structs as you like. Just make sure you create an instance
&mystruct2{},
},
})
-
```
You may bind enums types as well.
@@ -237,7 +236,7 @@ var AllWeekdays = []struct {
```
```go {10-12}
- //...
+ //...
err := wails.Run(&options.App{
Title: "Basic Demo",
Width: 1024,
@@ -250,11 +249,10 @@ var AllWeekdays = []struct {
&mystruct1{},
&mystruct2{},
},
- EnumBind: []interface{}{
- AllWeekdays,
- },
+ EnumBind: []interface{}{
+ AllWeekdays,
+ },
})
-
```
When you run `wails dev` (or `wails generate module`), a frontend module will be generated containing the following:
diff --git a/website/src/pages/changelog.mdx b/website/src/pages/changelog.mdx
index 25fab6e4c..8182af3fb 100644
--- a/website/src/pages/changelog.mdx
+++ b/website/src/pages/changelog.mdx
@@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed
+
+- Fixed indentation in "How does it work?" page by @agilgur5 in [#4733](https://github.com/wailsapp/wails/pull/4733)
+
## v2.11.0 - 2025-11-08
### Added
From 467f70ada77b662276db89a89328a27620fb2e2f Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Fri, 28 Nov 2025 23:24:03 +1100
Subject: [PATCH 02/25] chore: update sponsors.svg (#4735)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
---
website/static/img/sponsors.svg | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/website/static/img/sponsors.svg b/website/static/img/sponsors.svg
index eb8c70dfd..84eb6b87a 100644
--- a/website/static/img/sponsors.svg
+++ b/website/static/img/sponsors.svg
@@ -240,10 +240,10 @@ text {
-