From e811181034a3a90170f7cd73c4b8e09a40ef4976 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Mon, 23 Mar 2015 10:55:49 -0700 Subject: [PATCH] Add copyright header on website files --- website/core/DocsSidebar.js | 8 +++++++- website/core/H2.js | 8 +++++++- website/core/Header.js | 8 +++++++- website/core/HeaderLinks.js | 8 +++++++- website/core/Marked.js | 1 - website/core/Prism.js | 1 - website/core/Site.js | 8 +++++++- website/core/center.js | 8 +++++++- website/core/slugify.js | 7 +++++++ website/core/unindent.js | 7 +++++++ website/jsdocs/TypeExpressionParser.js | 9 ++++++++- website/jsdocs/findExportDefinition.js | 9 ++++++++- website/jsdocs/generic-function-visitor.js | 9 ++++++++- website/jsdocs/jsdocs.js | 9 ++++++++- website/jsdocs/meta.js | 9 ++++++++- website/jsdocs/traverseFlat.js | 9 ++++++++- website/jsdocs/type.js | 9 ++++++++- website/layout/AutodocsLayout.js | 8 +++++++- website/layout/DocsLayout.js | 8 +++++++- website/layout/PageLayout.js | 8 +++++++- website/publish.sh | 7 +++++++ website/server/convert.js | 9 +++++++++ website/server/extractDocs.js | 9 +++++++++ website/server/generate.js | 8 ++++++++ website/server/server.js | 9 +++++++++ website/setup.sh | 9 +++++++++ website/src/react-native/_index.js | 7 ++++++- website/src/react-native/support.js | 7 ++++++- 28 files changed, 196 insertions(+), 20 deletions(-) diff --git a/website/core/DocsSidebar.js b/website/core/DocsSidebar.js index 7b8cbb98b..2c18c7c8e 100644 --- a/website/core/DocsSidebar.js +++ b/website/core/DocsSidebar.js @@ -1,6 +1,12 @@ /** + * Copyright (c) 2015-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. + * * @providesModule DocsSidebar - * @jsx React.DOM */ var React = require('React'); diff --git a/website/core/H2.js b/website/core/H2.js index 3b67f42ec..02cd41732 100644 --- a/website/core/H2.js +++ b/website/core/H2.js @@ -1,6 +1,12 @@ /** + * Copyright (c) 2015-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. + * * @providesModule H2 - * @jsx React.DOM */ var React = require('React'); diff --git a/website/core/Header.js b/website/core/Header.js index 24e6784db..c84c98c40 100644 --- a/website/core/Header.js +++ b/website/core/Header.js @@ -1,6 +1,12 @@ /** + * Copyright (c) 2015-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. + * * @providesModule Header - * @jsx React.DOM */ var React = require('React'); diff --git a/website/core/HeaderLinks.js b/website/core/HeaderLinks.js index 86b749285..8b24558e5 100644 --- a/website/core/HeaderLinks.js +++ b/website/core/HeaderLinks.js @@ -1,6 +1,12 @@ /** + * Copyright (c) 2015-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. + * * @providesModule HeaderLinks - * @jsx React.DOM */ var React = require('React'); diff --git a/website/core/Marked.js b/website/core/Marked.js index 13eaab841..f510fe72d 100644 --- a/website/core/Marked.js +++ b/website/core/Marked.js @@ -4,7 +4,6 @@ * https://github.com/chjj/marked * * @providesModule Marked - * @jsx React.DOM */ var React = require('React'); diff --git a/website/core/Prism.js b/website/core/Prism.js index ef5d54f64..50b0b3c41 100644 --- a/website/core/Prism.js +++ b/website/core/Prism.js @@ -4,7 +4,6 @@ * @author Lea Verou http://lea.verou.me * * @providesModule Prism - * @jsx React.DOM */ var React = require('React'); diff --git a/website/core/Site.js b/website/core/Site.js index b9a770ce1..f18ccb23c 100644 --- a/website/core/Site.js +++ b/website/core/Site.js @@ -1,6 +1,12 @@ /** + * Copyright (c) 2015-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. + * * @providesModule Site - * @jsx React.DOM */ var React = require('React'); diff --git a/website/core/center.js b/website/core/center.js index fdc930965..782a3f30d 100644 --- a/website/core/center.js +++ b/website/core/center.js @@ -1,6 +1,12 @@ /** + * Copyright (c) 2015-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. + * * @providesModule center - * @jsx React.DOM */ var React = require('React'); diff --git a/website/core/slugify.js b/website/core/slugify.js index 9f9c48b6f..427524a4d 100644 --- a/website/core/slugify.js +++ b/website/core/slugify.js @@ -1,4 +1,11 @@ /** + * Copyright (c) 2015-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. + * * @providesModule slugify */ diff --git a/website/core/unindent.js b/website/core/unindent.js index 9913b2e2d..2d4d2c85f 100644 --- a/website/core/unindent.js +++ b/website/core/unindent.js @@ -1,4 +1,11 @@ /** + * Copyright (c) 2015-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. + * * @providesModule unindent */ diff --git a/website/jsdocs/TypeExpressionParser.js b/website/jsdocs/TypeExpressionParser.js index 7efcb747a..43b3b9f00 100644 --- a/website/jsdocs/TypeExpressionParser.js +++ b/website/jsdocs/TypeExpressionParser.js @@ -1,4 +1,11 @@ -// Copyright 2004-present Facebook. All Rights Reserved. +/** + * Copyright (c) 2015-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. + */ /*global exports:true*/ "use strict"; diff --git a/website/jsdocs/findExportDefinition.js b/website/jsdocs/findExportDefinition.js index 07c38b5a7..72a0cbe7d 100644 --- a/website/jsdocs/findExportDefinition.js +++ b/website/jsdocs/findExportDefinition.js @@ -1,4 +1,11 @@ -// Copyright 2004-present Facebook. All Rights Reserved. +/** + * Copyright (c) 2015-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. + */ /*jslint node: true */ "use strict"; diff --git a/website/jsdocs/generic-function-visitor.js b/website/jsdocs/generic-function-visitor.js index 5262d3fb8..0cb98ba86 100644 --- a/website/jsdocs/generic-function-visitor.js +++ b/website/jsdocs/generic-function-visitor.js @@ -1,4 +1,11 @@ -// Copyright 2004-present Facebook. All Rights Reserved. +/** + * Copyright (c) 2015-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. + */ /*global exports:true*/ /*jslint node:true*/ diff --git a/website/jsdocs/jsdocs.js b/website/jsdocs/jsdocs.js index 678ab83de..67f49238a 100644 --- a/website/jsdocs/jsdocs.js +++ b/website/jsdocs/jsdocs.js @@ -1,4 +1,11 @@ -// Copyright 2004-present Facebook. All Rights Reserved. +/** + * Copyright (c) 2015-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. + */ /*jslint node: true */ "use strict"; diff --git a/website/jsdocs/meta.js b/website/jsdocs/meta.js index 0cc92da3e..399b29778 100644 --- a/website/jsdocs/meta.js +++ b/website/jsdocs/meta.js @@ -1,4 +1,11 @@ -// Copyright 2004-present Facebook. All Rights Reserved. +/** + * Copyright (c) 2015-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. + */ /*global exports:true*/ /*jslint node:true*/ diff --git a/website/jsdocs/traverseFlat.js b/website/jsdocs/traverseFlat.js index 5d2390dca..8baa1b2e7 100644 --- a/website/jsdocs/traverseFlat.js +++ b/website/jsdocs/traverseFlat.js @@ -1,4 +1,11 @@ -// Copyright 2004-present Facebook. All Rights Reserved. +/** + * Copyright (c) 2015-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. + */ /*global exports:true*/ /*jslint node:true*/ diff --git a/website/jsdocs/type.js b/website/jsdocs/type.js index bcfe0b531..612a1349d 100644 --- a/website/jsdocs/type.js +++ b/website/jsdocs/type.js @@ -1,4 +1,11 @@ -// Copyright 2004-present Facebook. All Rights Reserved. +/** + * Copyright (c) 2015-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. + */ /*global exports:true*/ "use strict"; diff --git a/website/layout/AutodocsLayout.js b/website/layout/AutodocsLayout.js index 79d992c4e..c918b7d62 100644 --- a/website/layout/AutodocsLayout.js +++ b/website/layout/AutodocsLayout.js @@ -1,6 +1,12 @@ /** + * Copyright (c) 2015-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. + * * @providesModule AutodocsLayout - * @jsx React.DOM */ var DocsSidebar = require('DocsSidebar'); diff --git a/website/layout/DocsLayout.js b/website/layout/DocsLayout.js index 1463b8da5..4f355e5ae 100644 --- a/website/layout/DocsLayout.js +++ b/website/layout/DocsLayout.js @@ -1,6 +1,12 @@ /** + * Copyright (c) 2015-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. + * * @providesModule DocsLayout - * @jsx React.DOM */ var React = require('React'); diff --git a/website/layout/PageLayout.js b/website/layout/PageLayout.js index ef5aba259..c921bcd6b 100644 --- a/website/layout/PageLayout.js +++ b/website/layout/PageLayout.js @@ -1,6 +1,12 @@ /** + * Copyright (c) 2015-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. + * * @providesModule PageLayout - * @jsx React.DOM */ var React = require('React'); diff --git a/website/publish.sh b/website/publish.sh index 409db1459..29cf8d3f9 100755 --- a/website/publish.sh +++ b/website/publish.sh @@ -1,5 +1,12 @@ #!/bin/bash +# Copyright (c) 2015-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. + set -e # Start in website/ even if run from root directory diff --git a/website/server/convert.js b/website/server/convert.js index 7d239313d..cf7c8a806 100644 --- a/website/server/convert.js +++ b/website/server/convert.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-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. + */ + var fs = require('fs') var glob = require('glob'); var mkdirp = require('mkdirp'); diff --git a/website/server/extractDocs.js b/website/server/extractDocs.js index 1c7f19063..539da110a 100644 --- a/website/server/extractDocs.js +++ b/website/server/extractDocs.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-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. + */ + var docs = require('react-docgen'); var fs = require('fs'); var path = require('path'); diff --git a/website/server/generate.js b/website/server/generate.js index 3191ef992..cca82ba1c 100644 --- a/website/server/generate.js +++ b/website/server/generate.js @@ -1,3 +1,11 @@ +/** + * Copyright (c) 2015-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. + */ var request = require('request'); var glob = require('glob'); diff --git a/website/server/server.js b/website/server/server.js index 57a11e3b0..0bd5abcef 100644 --- a/website/server/server.js +++ b/website/server/server.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-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. + */ + "use strict"; var connect = require('connect'); var http = require('http'); diff --git a/website/setup.sh b/website/setup.sh index 69b5bddf4..e898738e1 100755 --- a/website/setup.sh +++ b/website/setup.sh @@ -1,3 +1,12 @@ +#!/bin/bash + +# Copyright (c) 2015-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. + cd ../../ git clone git@github.com:facebook/react-native.git react-native-gh-pages cd react-native-gh-pages diff --git a/website/src/react-native/_index.js b/website/src/react-native/_index.js index 8bd21d2ea..b9c8a41ca 100644 --- a/website/src/react-native/_index.js +++ b/website/src/react-native/_index.js @@ -1,5 +1,10 @@ /** - * @jsx React.DOM + * Copyright (c) 2015-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. */ var React = require('React'); diff --git a/website/src/react-native/support.js b/website/src/react-native/support.js index 898715ab1..bbf99f79c 100644 --- a/website/src/react-native/support.js +++ b/website/src/react-native/support.js @@ -1,5 +1,10 @@ /** - * @jsx React.DOM + * Copyright (c) 2015-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. */ var React = require('React');