Skip to content

Commit

Permalink
fix: version name
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolee1231 committed Dec 13, 2023
1 parent ef08d77 commit 5a211f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ const versions = Object.keys(branches)
.sort()
.reverse();

versions[0] += ' (stable)';

const stableBranch = versions[0];
const getVersions = () => {
if (!versions.length && isMain) {
return [];
Expand All @@ -72,7 +71,7 @@ const getVersions = () => {
disabled: true,
},
...versions.map((v) => ({
text: v,
text: v === stableBranch ? `${v} (stable)` : v,
link: `${domain}/${v}/`,
target: '_blank',
})),
Expand Down

0 comments on commit 5a211f6

Please sign in to comment.