/** * Copyright (c) Facebook, Inc. and its affiliates. * * 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 CWD = process.cwd(); const versions = require(`${CWD}/versions.json`); function Versions(props) { const {config: siteConfig} = props; const latestVersion = versions[0]; const repoUrl = `https://github.com/${siteConfig.organizationName}/${siteConfig.projectName}`; return (

{siteConfig.title} Versions

New versions of this project are released every so often.

Current version (Stable)

{latestVersion} {/* You are supposed to change this href where appropriate Example: href="/docs(/:language)/:id" */} Documentation Release Notes

This is the version that is configured automatically when you first install this project.

Pre-release versions

master {/* You are supposed to change this href where appropriate Example: href="/docs(/:language)/next/:id" */} Documentation Source Code

Other text describing this section.

Past Versions

Here you can find previous versions of the documentation.

{versions.map( (version) => version !== latestVersion && ( ), )}
{version} {/* You are supposed to change this href where appropriate Example: href="/docs(/:language)/:version/:id" */} Documentation Release Notes

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

); } module.exports = Versions;