mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
docs: Update
This commit is contained in:
parent
ebbbb448fa
commit
f1c87ac373
@ -43,6 +43,11 @@ var (
|
||||
devVersion = ""
|
||||
)
|
||||
|
||||
func majorMinor(ver string) string {
|
||||
t := strings.Split(ver, ".")
|
||||
return t[0] + "." + t[1]
|
||||
}
|
||||
|
||||
func init() {
|
||||
b, err := exec.Command("git", "tag").Output()
|
||||
if err != nil {
|
||||
@ -69,7 +74,7 @@ func init() {
|
||||
|
||||
stableVersion = stableVers[len(stableVers)-1]
|
||||
rcVersion = rcVers[len(rcVers)-1]
|
||||
if rcVersion[:strings.Index(rcVersion, "-")] == stableVersion {
|
||||
if majorMinor(rcVersion[:strings.Index(rcVersion, "-")]) == majorMinor(stableVersion) {
|
||||
rcVersion = ""
|
||||
}
|
||||
devVersion = devVers[len(devVers)-1]
|
||||
|
@ -38,7 +38,7 @@
|
||||
<main><div class="container">
|
||||
<dl class="row">
|
||||
<dt class="col-3 text-right">Stable Version</dt>
|
||||
<dd class="col-9">v1.8.0</dd>
|
||||
<dd class="col-9">v1.8.1</dd>
|
||||
|
||||
<dt class="col-3 text-right">Development Version</dt>
|
||||
<dd class="col-9">v1.9.0-alpha</dd>
|
||||
|
Loading…
Reference in New Issue
Block a user