Update docs

This commit is contained in:
Lea Anthony
2023-10-28 15:44:36 +11:00
parent fb7fda2256
commit 3b50e0cbc5
9 changed files with 43 additions and 27 deletions
@@ -134,14 +134,17 @@ The `InjectJS()` method returns JavaScript that should be injected into all
windows as they are created. This is useful for adding custom JavaScript
functions that complement the plugin.
## Misc Tasks
The built-in plugins can be found in the `v3/plugins` directory.
Check them out for inspiration.
### Upgrading Taskfile
## Tasks
The Wails CLI uses the [Task](https://taskfile.dev) build system. It is imported
as a library and used to run the tasks defined in `Taskfile.yaml`. The main
interfacing with Task happens in `v3/internal/commands/task.go`.
### Upgrading Taskfile
To check if there's an upgrade for Taskfile, run `wails3 task -version` and
check against the Task website.
@@ -171,7 +174,7 @@ wails3 task -version
Make sure that all PRs have a ticket associated with them providing context to
the change. If there is no ticket, please create one first. Ensure that all PRs
have updated the CHANGELOG.md file with the changes made. The CHANGELOG.md file
is located in the `v3` directory.
is located in the `mkdocs-website/docs` directory.
## Misc Tasks
@@ -4,7 +4,9 @@ To install the Wails CLI, ensure you have [Go 1.21+](https://go.dev/dl/)
installed and run:
```shell
go install github.com/wailsapp/wails/v3/cmd/wails3@latest
git clone https://github.com/wailsapp/wails.git
cd wails/cmd/wails3
go install
```
## Supported Platforms
@@ -15,6 +15,8 @@ go run .
in the example directory.
The status of the examples is on the [roadmap](/roadmap).
## Creating a new project
To create a new project, you can use the `wails3 init` command. This will create
+1 -1
View File
@@ -34,7 +34,7 @@ The main goal is to get most of the examples working on all platforms.
| systray | W | W | |
| video | | W | |
| window | P | W | |
| wml | | W | |
| wml | W | W | |
- Mac Dialogs work, however the file dialogs issue a warning that needs to be fixed.
+14 -14
View File
@@ -1,7 +1,7 @@
# What's new in v3?
!!! note The features that will be included in the v3 release may change from
this list.
!!! note
The features that will be included in the v3 release may change from this list.
## Multiple Windows
@@ -311,24 +311,24 @@ An experimental feature to call runtime methods using plain html, similar to
<body style="margin-top:50px; color: white; background-color: #191919">
<h2>Wails ML Demo</h2>
<p>This application contains no Javascript!</p>
<button data-wml-event="button-pressed">Press me!</button>
<button data-wml-event="delete-things" data-wml-confirm="Are you sure?">
<button wml-event="button-pressed">Press me!</button>
<button wml-event="delete-things" wml-confirm="Are you sure?">
Delete all the things!
</button>
<button data-wml-window="Close" data-wml-confirm="Are you sure?">
<button wml-window="Close" wml-confirm="Are you sure?">
Close the Window?
</button>
<button data-wml-window="Center">Center</button>
<button data-wml-window="Minimise">Minimise</button>
<button data-wml-window="Maximise">Maximise</button>
<button data-wml-window="UnMaximise">UnMaximise</button>
<button data-wml-window="Fullscreen">Fullscreen</button>
<button data-wml-window="UnFullscreen">UnFullscreen</button>
<button data-wml-window="Restore">Restore</button>
<button wml-window="Center">Center</button>
<button wml-window="Minimise">Minimise</button>
<button wml-window="Maximise">Maximise</button>
<button wml-window="UnMaximise">UnMaximise</button>
<button wml-window="Fullscreen">Fullscreen</button>
<button wml-window="UnFullscreen">UnFullscreen</button>
<button wml-window="Restore">Restore</button>
<div
style="width: 200px; height: 200px; border: 2px solid white;"
data-wml-event="hover"
data-wml-trigger="mouseover"
wml-event="hover"
wml-trigger="mouseover"
>
Hover over me
</div>