/** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const React = require('react'); const CompLibrary = require('../../core/CompLibrary'); const Container = CompLibrary.Container; const GridBlock = CompLibrary.GridBlock; const CWD = process.cwd(); const siteConfig = require(CWD + '/siteConfig.js'); const versions = require(CWD + '/versions.json'); class Versions extends React.Component { render() { const latestVersion = versions[0]; return (

{siteConfig.title} Versions

Current version (Stable)

Latest version of Docusaurus.

{latestVersion} Documentation Release Notes

Latest Version

Here you can find the latest documentation and unreleased code.
master Documentation Source Code

Past Versions

Here you can find documentation for previous versions of Docusaurus.

{versions.map( version => version !== latestVersion && ( ) )}
{version} Documentation Release Notes

You can find past versions of this project on{' '} GitHub.

); } } module.exports = Versions;