This is an automated email from the ASF dual-hosted git repository. wusheng pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/skywalking-website.git
The following commit(s) were added to refs/heads/master by this push: new fa26f8af8fa fix version auto-selected (#677) fa26f8af8fa is described below commit fa26f8af8fa9cad6e8658f553ff84ca403957974 Author: Juntao Zhang <719284...@qq.com> AuthorDate: Mon Feb 19 23:38:44 2024 +0800 fix version auto-selected (#677) --- docs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs.js b/docs.js index 974790fdf46..78f0ce70a68 100644 --- a/docs.js +++ b/docs.js @@ -162,11 +162,11 @@ async function traverseDocsList(result) { </h5> <p>${description}</p> </div> - {{ $currentVersion := .Site.Data.docSidebar.${menuFileName}.version }} + {{ $currentVersion := lower .Site.Data.docSidebar.${menuFileName}.version }} <div class="version-wrapper">Version: <select class="version-select"> {{range .Site.Data.docSidebar.${menuFileName}.repoDocs}} - {{$version := .version}} + {{$version := lower .version}} {{$versionName := .versionName}} <option {{ cond (eq $currentVersion $version) "selected" "" }} value="{{$version}}"> {{if $versionName}}