diff --git a/website/src/pages/versions.js b/website/src/pages/versions.js index fae9580d4e..2093d5c664 100644 --- a/website/src/pages/versions.js +++ b/website/src/pages/versions.js @@ -20,8 +20,9 @@ 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 (

Docusaurus documentation versions

+ + {stableVersion && ( +
+

Current version (Stable)

+

+ Here you can find the documentation for current released version. +

+ + + + + + + + +
{stableVersion.name} + Documentation + + + Release Notes + +
+
+ )} +
-

Latest version (Stable)

-

Here you can find the latest documentation.

+

Next version (Unreleased)

+

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

@@ -39,15 +68,11 @@ function Version() { -
Documentation - - Release Notes - -
+ {currentVersion !== latestVersion && (

Next version (Unreleased)

@@ -69,7 +94,7 @@ function Version() { )} {pastVersions.length > 0 && (
-

Past Versions

+

Past versions (Not maintained anymore)

Here you can find documentation for previous versions of Docusaurus.