diff --git a/website/src/pages/versions.js b/website/src/pages/versions.js index df31a727731a..f2a57fe96f04 100644 --- a/website/src/pages/versions.js +++ b/website/src/pages/versions.js @@ -20,7 +20,6 @@ function Version() { const pastVersions = versions.filter( (version) => version !== latestVersion && version.name !== 'current', ); - const stableVersion = pastVersions.shift(); const repoUrl = `https://github.com/${siteConfig.organizationName}/${siteConfig.projectName}`; return ( @@ -30,7 +29,7 @@ function Version() {

Docusaurus documentation versions

- {stableVersion && ( + {latestVersion && (

Current version (Stable)

@@ -39,12 +38,12 @@ function Version() { - + @@ -54,23 +53,25 @@ function Version() { )} -
-

Next version (Unreleased)

-

- Here you can find the documentation for work-in-process unreleased - version. -

-
{stableVersion.name}{latestVersion.label} - Documentation + Documentation - + Release Notes
- - - - - - -
{latestVersion.label} - Documentation -
-

+ {currentVersion !== latestVersion && ( +
+

Next version (Unreleased)

+

+ Here you can find the documentation for work-in-process unreleased + version. +

+ + + + + + + +
{currentVersion.label} + Documentation +
+
+ )} {pastVersions.length > 0 && (