From 8a0e8ab32dafd8f15bd46b074b8edad05c8db95a Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Thu, 2 Aug 2018 07:41:48 +0200 Subject: [PATCH] fix: remove version page --- website/pages/en/versions.js | 111 ----------------------------------- 1 file changed, 111 deletions(-) delete mode 100644 website/pages/en/versions.js diff --git a/website/pages/en/versions.js b/website/pages/en/versions.js deleted file mode 100644 index 3702678c4..000000000 --- a/website/pages/en/versions.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * 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(props) { - const latestVersion = versions[0]; - const repoUrl = `https://github.com/${siteConfig.organizationName}/${ - siteConfig.projectName - }`; - - return ( -
- -
-
-

{siteConfig.title + ' Versions'}

-
-

Current version (Stable)

- - - - - - - - -
{latestVersion} - Documentation - - Release Notes -
-

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

-

Pre-release versions

- - - - - - - - -
master - - Documentation - - - Release Notes -
-

- This is the current master branch documentation. -

-

Past Versions

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

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

-
-
-
- ); - } -} - -module.exports = Versions;