From 77535d80f2e9d1660e7698e193e10a0d78c342a9 Mon Sep 17 00:00:00 2001 From: Joel Marcey Date: Thu, 5 Oct 2017 11:14:49 -0700 Subject: [PATCH] The complete move to MIT license (#115) - headers in .js files - update README and LICENSE year Testing: grep BSD, Patents, patents turned up nothing --- LICENSE | 2 +- README.md | 4 +--- docusaurus-init/initialize.js | 6 ++---- examples/basics/core/Footer.js | 7 +++++++ examples/basics/pages/en/help.js | 7 +++++++ examples/basics/pages/en/index.js | 7 +++++++ examples/basics/pages/en/users.js | 7 +++++++ examples/basics/siteConfig.js | 6 ++---- examples/translations/languages.js | 7 +++++++ .../translations/pages/en/help-with-translations.js | 7 +++++++ examples/versions/pages/en/versions.js | 7 +++++++ lib/build-files.js | 6 ++---- lib/copy-examples.js | 6 ++---- lib/core/BlogPageLayout.js | 6 ++---- lib/core/BlogPost.js | 6 ++---- lib/core/BlogPostLayout.js | 10 ++++------ lib/core/BlogSidebar.js | 6 ++---- lib/core/CompLibrary.js | 6 ++---- lib/core/Container.js | 6 ++---- lib/core/Doc.js | 6 ++---- lib/core/DocsLayout.js | 6 ++---- lib/core/DocsSidebar.js | 6 ++---- lib/core/GridBlock.js | 6 ++---- lib/core/Head.js | 6 ++---- lib/core/Header.js | 6 ++---- lib/core/Marked.js | 6 ++---- lib/core/Prism.js | 6 ++---- lib/core/Site.js | 10 ++++------ lib/core/SnackPlayer.js | 9 ++++----- lib/core/WebPlayer.js | 8 +++----- lib/core/nav/HeaderNav.js | 6 ++---- lib/core/nav/SideNav.js | 8 +++----- lib/core/toSlug.js | 6 ++---- lib/core/unindent.js | 6 ++---- lib/generate-feed.js | 6 ++---- lib/publish-gh-pages.js | 6 ++---- lib/rename-version.js | 6 ++---- lib/server/feed.js | 6 ++---- lib/server/generate.js | 6 ++---- lib/server/readCategories.js | 6 ++---- lib/server/readMetadata.js | 6 ++---- lib/server/server.js | 6 ++---- lib/server/translate-plugin.js | 6 ++---- lib/server/translate.js | 6 ++---- lib/server/translation.js | 6 ++---- lib/server/versionFallback.js | 6 ++---- lib/start-server.js | 6 ++---- lib/static/js/webplayer.js | 8 +++----- lib/version.js | 6 ++---- lib/write-translations.js | 8 +++----- website/core/Footer.js | 6 ++---- website/languages.js | 6 ++---- website/pages/en/help.js | 6 ++---- website/pages/en/index.js | 6 ++---- website/pages/en/users.js | 6 ++---- website/siteConfig.js | 6 ++---- 56 files changed, 155 insertions(+), 201 deletions(-) diff --git a/LICENSE b/LICENSE index 188fb2b0bd..c29bfe0ab7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2013-present, Facebook, Inc. +Copyright (c) 2017-present, Facebook, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index bc813679c4..a523170538 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,4 @@ To help you get your feet wet and get you familiar with our contribution process ### License -React is [? licensed](./LICENSE). - -React documentation is [? licensed](./LICENSE-docs). +Docusaurus is [MIT licensed](./LICENSE). diff --git a/docusaurus-init/initialize.js b/docusaurus-init/initialize.js index 3a5d22c206..725b7b41da 100644 --- a/docusaurus-init/initialize.js +++ b/docusaurus-init/initialize.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2017-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const shell = require("shelljs"); diff --git a/examples/basics/core/Footer.js b/examples/basics/core/Footer.js index 61f06560c7..7143571146 100644 --- a/examples/basics/core/Footer.js +++ b/examples/basics/core/Footer.js @@ -1,3 +1,10 @@ +/** + * 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 githubButton = ( diff --git a/examples/basics/pages/en/help.js b/examples/basics/pages/en/help.js index 543857c9fe..68a6f3f8a2 100755 --- a/examples/basics/pages/en/help.js +++ b/examples/basics/pages/en/help.js @@ -1,3 +1,10 @@ +/** + * 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.js"); diff --git a/examples/basics/pages/en/index.js b/examples/basics/pages/en/index.js index af247a7bdb..034813712d 100755 --- a/examples/basics/pages/en/index.js +++ b/examples/basics/pages/en/index.js @@ -1,3 +1,10 @@ +/** + * 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.js"); diff --git a/examples/basics/pages/en/users.js b/examples/basics/pages/en/users.js index 11995440e3..378409cc74 100644 --- a/examples/basics/pages/en/users.js +++ b/examples/basics/pages/en/users.js @@ -1,3 +1,10 @@ +/** + * 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.js"); diff --git a/examples/basics/siteConfig.js b/examples/basics/siteConfig.js index 344daeb0af..72cd71f2f8 100644 --- a/examples/basics/siteConfig.js +++ b/examples/basics/siteConfig.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /* List of projects/orgs using your project for the users page */ diff --git a/examples/translations/languages.js b/examples/translations/languages.js index e3fae61a7a..01e7c50df8 100644 --- a/examples/translations/languages.js +++ b/examples/translations/languages.js @@ -1,3 +1,10 @@ +/** + * 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 languages = [ { enabled: true, diff --git a/examples/translations/pages/en/help-with-translations.js b/examples/translations/pages/en/help-with-translations.js index 07e1dfa81e..6c52b81d78 100644 --- a/examples/translations/pages/en/help-with-translations.js +++ b/examples/translations/pages/en/help-with-translations.js @@ -1,3 +1,10 @@ +/** + * 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.js"); diff --git a/examples/versions/pages/en/versions.js b/examples/versions/pages/en/versions.js index aad9ef92d7..7dfe98012a 100644 --- a/examples/versions/pages/en/versions.js +++ b/examples/versions/pages/en/versions.js @@ -1,3 +1,10 @@ +/** + * 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"); diff --git a/lib/build-files.js b/lib/build-files.js index d37e8a981a..d6480860a1 100755 --- a/lib/build-files.js +++ b/lib/build-files.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2017-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ require("babel-register")({ diff --git a/lib/copy-examples.js b/lib/copy-examples.js index abf64cbd29..9a343e08b2 100755 --- a/lib/copy-examples.js +++ b/lib/copy-examples.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2017-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const CWD = process.cwd(); diff --git a/lib/core/BlogPageLayout.js b/lib/core/BlogPageLayout.js index a5fbc271dd..0eb71b4a6e 100644 --- a/lib/core/BlogPageLayout.js +++ b/lib/core/BlogPageLayout.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const BlogPost = require("./BlogPost.js"); diff --git a/lib/core/BlogPost.js b/lib/core/BlogPost.js index 753123085a..aa0dc1a758 100644 --- a/lib/core/BlogPost.js +++ b/lib/core/BlogPost.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const Marked = require("./Marked.js"); diff --git a/lib/core/BlogPostLayout.js b/lib/core/BlogPostLayout.js index f1fa76336e..69e5771d2f 100644 --- a/lib/core/BlogPostLayout.js +++ b/lib/core/BlogPostLayout.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * 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"); @@ -18,8 +16,8 @@ class BlogPostLayout extends React.Component { renderSocialButtons() { const post = this.props.metadata; - - const fbLike = this.props.config.facebookAppId ? + + const fbLike = this.props.config.facebookAppId ?
} - {this.props.config.facebookAppId && + {this.props.config.facebookAppId &&