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 7b8cbb98b48551..2c18c7c8e75784 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 3b67f42ecbd82a..02cd417329c5c3 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 24e6784db1ea0e..c84c98c401b03f 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 86b74928561231..8b24558e506a57 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 13eaab84131a18..f510fe72dbb714 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 ef5d54f64a286a..50b0b3c4170abd 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 b9a770ce1bb847..f18ccb23c9d400 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 fdc930965b8a8c..782a3f30db14f6 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 9f9c48b6fbc03b..427524a4ddc32d 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 9913b2e2dfc7a6..2d4d2c85f7069c 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 7efcb747a444f8..43b3b9f00867a9 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 07c38b5a7f6a2b..72a0cbe7de65c3 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 5262d3fb8199b4..0cb98ba8614ffb 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 678ab83de99779..67f49238a3aa88 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 0cc92da3e058c8..399b297782a705 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 5d2390dcacac58..8baa1b2e79d157 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 bcfe0b53169d73..612a1349de2c23 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 79d992c4ee3c2d..c918b7d6249b59 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 1463b8da5f8eb3..4f355e5aee545e 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 ef5aba259dbc57..c921bcd6b3538e 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 409db1459cec16..29cf8d3f99b045 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 7d239313dbc14f..cf7c8a8065932d 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 1c7f1906375966..539da110ab80eb 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 3191ef992de30f..cca82ba1c2590e 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 57a11e3b092126..0bd5abcef02836 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 69b5bddf4f3a42..e898738e126e2f 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 8bd21d2ea89a4d..b9c8a41ca58b6f 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 898715ab1d359f..bbf99f79ceaad2 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');