Skip to content

Commit

Permalink
docs: fix versions page
Browse files Browse the repository at this point in the history
  • Loading branch information
eriveltonelias committed Apr 12, 2021
1 parent 6aa45ba commit c601cd0
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/pages/versions.js
Expand Up @@ -11,8 +11,9 @@ import versions from '../../versions.json';
function Version() {
const context = useDocusaurusContext();
const {siteConfig = {}} = context;
const nextVersion = versions[0];
const latestVersion = versions[1];
const pastVersions = versions.slice(1, 1);
const pastVersions = versions.slice(2, versions.length);
const repoUrl = `https://github.com/${siteConfig.organizationName}/${siteConfig.projectName}`;

return (
Expand All @@ -37,6 +38,22 @@ function Version() {
</tbody>
</table>
</div>
<div className="margin-bottom--lg">
<h3 id="latest">Next version (Unreleased)</h3>
<p>Here you can find the documentation for work-in-process unreleased version.</p>
<table>
<tbody>
<tr>
<th>{nextVersion}</th>
<td>
<Link to={useBaseUrl(`/docs/${nextVersion}/getting-started`)}>
Documentation
</Link>
</td>
</tr>
</tbody>
</table>
</div>
{pastVersions.length > 0 && (
<div className="margin-bottom--lg">
<h3 id="archive">Past Versions</h3>
Expand Down

0 comments on commit c601cd0

Please sign in to comment.