docs: Update

This commit is contained in:
Hajime Hoshi 2018-12-25 05:11:31 +09:00
parent ebbbb448fa
commit f1c87ac373
2 changed files with 7 additions and 2 deletions

View File

@ -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]

View File

@ -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>