File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ import versions from '../../versions.json';
11
11
function Version ( ) {
12
12
const context = useDocusaurusContext ( ) ;
13
13
const { siteConfig = { } } = context ;
14
+ const nextVersion = versions [ 0 ] ;
14
15
const latestVersion = versions [ 1 ] ;
15
- const pastVersions = versions . slice ( 1 , 1 ) ;
16
+ const pastVersions = versions . slice ( 2 , versions . length ) ;
16
17
const repoUrl = `https://github.com/${ siteConfig . organizationName } /${ siteConfig . projectName } ` ;
17
18
18
19
return (
@@ -37,6 +38,22 @@ function Version() {
37
38
</ tbody >
38
39
</ table >
39
40
</ 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 >
40
57
{ pastVersions . length > 0 && (
41
58
< div className = "margin-bottom--lg" >
42
59
< h3 id = "archive" > Past Versions</ h3 >
You can’t perform that action at this time.
0 commit comments