Skip to content

Commit c601cd0

Browse files
docs: fix versions page
1 parent 6aa45ba commit c601cd0

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/pages/versions.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import versions from '../../versions.json';
1111
function Version() {
1212
const context = useDocusaurusContext();
1313
const {siteConfig = {}} = context;
14+
const nextVersion = versions[0];
1415
const latestVersion = versions[1];
15-
const pastVersions = versions.slice(1, 1);
16+
const pastVersions = versions.slice(2, versions.length);
1617
const repoUrl = `https://github.com/${siteConfig.organizationName}/${siteConfig.projectName}`;
1718

1819
return (
@@ -37,6 +38,22 @@ function Version() {
3738
</tbody>
3839
</table>
3940
</div>
41+
<div className="margin-bottom--lg">
42+
<h3 id="latest">Next version (Unreleased)</h3>
43+
<p>Here you can find the documentation for work-in-process unreleased version.</p>
44+
<table>
45+
<tbody>
46+
<tr>
47+
<th>{nextVersion}</th>
48+
<td>
49+
<Link to={useBaseUrl(`/docs/${nextVersion}/getting-started`)}>
50+
Documentation
51+
</Link>
52+
</td>
53+
</tr>
54+
</tbody>
55+
</table>
56+
</div>
4057
{pastVersions.length > 0 && (
4158
<div className="margin-bottom--lg">
4259
<h3 id="archive">Past Versions</h3>

0 commit comments

Comments
 (0)