/** * 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

Docusaurus v2

We now recommend using{' '} Docusaurus v2.

2.x Documentation

Docusaurus v1

Current v1 version (Stable)

Latest version of Docusaurus v1.

{latestVersion} Documentation Release Notes

Latest Version

Unreleased Docusaurus v1 code.

v1 master Documentation Source Code

Past Versions

Here you can find documentation for previous versions of Docusaurus v1.

{versions.map( (version) => version !== latestVersion && ( ), )}
{version === versions[versions.length - 1] ? '<=' : ''} {version} Documentation

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

); } Versions.title = 'Versions'; module.exports = Versions;