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 && } - {this.props.config.twitter && + {this.props.config.twitter &&