5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 18:29:53 +08:00

docs: improve documentation (#2686)

* docs: fix changelog format

* fix: fix release tools

* chore: set sync translated documents as a scheduled task
This commit is contained in:
Misite Bao 2023-05-26 15:49:50 +08:00 committed by GitHub
parent ec19458c1b
commit 37e43dabc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -2,6 +2,8 @@ name: Sync Translations
on: on:
workflow_dispatch: workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs: jobs:
sync-translated-documents: sync-translated-documents:

View File

@ -2,13 +2,14 @@ package main
import ( import (
"encoding/json" "encoding/json"
"github.com/samber/lo"
"os" "os"
"os/exec" "os/exec"
"strconv" "strconv"
"strings" "strings"
"time" "time"
"github.com/samber/lo"
"github.com/wailsapp/wails/v2/internal/s" "github.com/wailsapp/wails/v2/internal/s"
) )
@ -86,7 +87,7 @@ func main() {
// Get today's date in YYYY-MM-DD format // Get today's date in YYYY-MM-DD format
today := time.Now().Format("2006-01-02") today := time.Now().Format("2006-01-02")
// Add the new version to the top of the changelog // Add the new version to the top of the changelog
newChangelog := changelogSplit[0] + "## [Unreleased]\n\n## [" + newVersion + "] - " + today + changelogSplit[1] newChangelog := changelogSplit[0] + "## [Unreleased]\n\n## " + newVersion + " - " + today + changelogSplit[1]
// Write the changelog back // Write the changelog back
err = os.WriteFile("src/pages/changelog.mdx", []byte(newChangelog), 0755) err = os.WriteFile("src/pages/changelog.mdx", []byte(newChangelog), 0755)
checkError(err) checkError(err)

View File

@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Avoid app crashing when the Linux GTK key is empty by @aminya in [PR](https://github.com/wailsapp/wails/pull/2672) - Avoid app crashing when the Linux GTK key is empty by @aminya in [PR](https://github.com/wailsapp/wails/pull/2672)
## [v2.5.1] - 2023-05-16 ## v2.5.1 - 2023-05-16
### Breaking Changes ### Breaking Changes