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';
1111function 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 >
You can’t perform that action at this time.
0 commit comments