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