You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by gu...@apache.org on 2022/09/26 10:23:25 UTC

[apisix-website] branch master updated: chore: update LTS version (#1342)

This is an automated email from the ASF dual-hosted git repository.

guoqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 302a60d7cc3 chore: update LTS version (#1342)
302a60d7cc3 is described below

commit 302a60d7cc3c7dea97fe90b04f6364fc34c9affb
Author: Young <is...@outlook.com>
AuthorDate: Mon Sep 26 18:23:19 2022 +0800

    chore: update LTS version (#1342)
---
 config/apisix-versions.js                                  | 2 +-
 doc/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx | 7 ++-----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/config/apisix-versions.js b/config/apisix-versions.js
index 6d3289247cf..f02a29ecbeb 100644
--- a/config/apisix-versions.js
+++ b/config/apisix-versions.js
@@ -8,7 +8,7 @@ const versions = ['2.12', '2.13', '2.14', '2.15'];
 /**
  * @type {Array<string>} LTS version list
  */
-const LTSVersions = ['2.13'];
+const LTSVersions = ['2.15'];
 
 /**
  * @type {Array<{label: string, href: string}>}
diff --git a/doc/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx b/doc/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx
index 72cc6d7238f..97073f368bc 100644
--- a/doc/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx
+++ b/doc/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx
@@ -36,11 +36,8 @@ const LabelWithBadge: FC<LabelWithBadgeProps> = (props) => {
   return (
     <div>
       {version.label}
-      {(() => {
-        if (version.isLast) return badgeObj.Latest;
-        if (isApisx && LTSVersions.includes(version.label)) return badgeObj.LTS;
-        return null;
-      })()}
+      {version.isLast && badgeObj.Latest}
+      {isApisx && LTSVersions.includes(version.label) && badgeObj.LTS}
     </div>
   );
 };