Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
BSD License

For Docusaurus software

Copyright (c) 2017-present, Facebook, Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name Facebook nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 changes: 33 additions & 0 deletions PATENTS
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Additional Grant of Patent Rights Version 2

"Software" means the Docusaurus software contributed by Facebook, Inc.

Facebook, Inc. ("Facebook") hereby grants to each recipient of the Software
("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable
(subject to the termination provision below) license under any Necessary
Claims, to make, have made, use, sell, offer to sell, import, and otherwise
transfer the Software. For avoidance of doubt, no license is granted under
Facebook’s rights in any patent claims that are infringed by (i) modifications
to the Software made by you or any third party or (ii) the Software in
combination with any software or other technology.

The license granted hereunder will terminate, automatically and without notice,
if you (or any of your subsidiaries, corporate affiliates or agents) initiate
directly or indirectly, or take a direct financial interest in, any Patent
Assertion: (i) against Facebook or any of its subsidiaries or corporate
affiliates, (ii) against any party if such Patent Assertion arises in whole or
in part from any software, technology, product or service of Facebook or any of
its subsidiaries or corporate affiliates, or (iii) against any party relating
to the Software. Notwithstanding the foregoing, if Facebook or any of its
subsidiaries or corporate affiliates files a lawsuit alleging patent
infringement against you in the first instance, and you respond by filing a
patent infringement counterclaim in that lawsuit against that party that is
unrelated to the Software, the license granted hereunder will not terminate
under section (i) of this paragraph due to such counterclaim.

A "Necessary Claim" is a claim of a patent owned by Facebook that is
necessarily infringed by the Software standing alone.

A "Patent Assertion" is any lawsuit or other action alleging direct, indirect,
or contributory infringement or inducement to infringe any patent, including a
cross-claim or counterclaim.
9 changes: 9 additions & 0 deletions examples/core/Footer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const React = require("react");

const githubButton = (
Expand Down
9 changes: 9 additions & 0 deletions examples/languages.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const languages = [
{
enabled: false,
Expand Down
8 changes: 8 additions & 0 deletions examples/pages/en/help.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright (c) 20__-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.
*/
const React = require("react");

const CompLibrary = require("../../core/CompLibrary.js");
Expand Down
9 changes: 9 additions & 0 deletions examples/pages/en/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const React = require("react");

const CompLibrary = require("../../core/CompLibrary.js");
Expand Down
9 changes: 9 additions & 0 deletions examples/pages/en/users.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const React = require("react");

const CompLibrary = require("../../core/CompLibrary.js");
Expand Down
9 changes: 9 additions & 0 deletions examples/siteConfig.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const fs = require("fs");

/* List of projects/orgs using your project for the users page */
Expand Down
9 changes: 9 additions & 0 deletions lib/build-files.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/usr/bin/env node

/**
* 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.
*/

require('babel-register') ({
ignore: false,
"presets": ["react"]
Expand Down
11 changes: 10 additions & 1 deletion lib/copy-examples.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#!/usr/bin/env node

/**
* 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.
*/

const CWD = process.cwd();
const fs = require('fs-extra');

fs.copySync(__dirname + '/../examples/', CWD, {overwrite: false});
fs.copySync(__dirname + '/../examples/', CWD, {overwrite: false});
13 changes: 11 additions & 2 deletions lib/core/BlogPageLayout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
const BlogPost = require('./BlogPost.js');
/**
* Copyright (c) 20__-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.
*/

const BlogPost = require('./BlogPost.js');
const BlogSidebar = require('./BlogSidebar.js');
const Container = require('./Container.js');
const MetadataBlog = require('./MetadataBlog.js');
Expand Down Expand Up @@ -54,4 +63,4 @@ const BlogPageLayout = React.createClass({
},
});

module.exports = BlogPageLayout;
module.exports = BlogPageLayout;
11 changes: 10 additions & 1 deletion lib/core/BlogPost.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const Marked = require('./Marked.js');
const React = require('react');

Expand Down Expand Up @@ -95,4 +104,4 @@ class BlogPost extends React.Component {
}
}

module.exports = BlogPost;
module.exports = BlogPost;
11 changes: 10 additions & 1 deletion lib/core/BlogPostLayout.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const React = require('react');
const BlogPost = require('./BlogPost.js');
const BlogSidebar = require('./BlogSidebar.js');
Expand Down Expand Up @@ -34,4 +43,4 @@ class BlogPostLayout extends React.Component {
}
}

module.exports = BlogPostLayout;
module.exports = BlogPostLayout;
11 changes: 10 additions & 1 deletion lib/core/BlogSidebar.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const React = require('react');
const Container = require('./Container.js');
const SideNav = require('./nav/SideNav.js');
Expand Down Expand Up @@ -29,4 +38,4 @@ class BlogSidebar extends React.Component {
}
}

module.exports = BlogSidebar;
module.exports = BlogSidebar;
11 changes: 10 additions & 1 deletion lib/core/CompLibrary.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const Marked = require('./Marked.js');
const Container = require('./Container.js');
const GridBlock = require('./GridBlock.js');
Expand All @@ -6,4 +15,4 @@ module.exports = {
Marked: Marked,
Container: Container,
GridBlock: GridBlock
}
}
11 changes: 10 additions & 1 deletion lib/core/Container.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const React = require('react');
const classNames = require('classnames');

Expand Down Expand Up @@ -35,4 +44,4 @@ Container.defaultProps = {
wrapper: true,
};

module.exports = Container;
module.exports = Container;
11 changes: 10 additions & 1 deletion lib/core/Doc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const React = require('react');
const Marked = require('./Marked.js');

Expand Down Expand Up @@ -31,4 +40,4 @@ class Doc extends React.Component {
}
}

module.exports = Doc;
module.exports = Doc;
9 changes: 9 additions & 0 deletions lib/core/DocsLayout.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const React = require('react');
const Container = require('./Container.js');
const Doc = require('./Doc.js');
Expand Down
9 changes: 9 additions & 0 deletions lib/core/DocsSidebar.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const Metadata = require('./metadata.js');
const React = require('react');
const Container = require('./Container.js');
Expand Down
13 changes: 11 additions & 2 deletions lib/core/Footer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const React = require('react');

const githubButton = (
Expand Down Expand Up @@ -43,7 +52,7 @@ class Footer extends React.Component {
>
Guides (or other categories)
</a>
<a
<a
href={
this.props.config.baseUrl + 'docs/' + this.props.language + '/doc3.html'
}
Expand Down Expand Up @@ -99,4 +108,4 @@ class Footer extends React.Component {



module.exports = Footer;
module.exports = Footer;
9 changes: 9 additions & 0 deletions lib/core/GridBlock.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const React = require('react');
const classNames = require('classnames');

Expand Down
9 changes: 9 additions & 0 deletions lib/core/Head.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Copyright (c) 20__-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.
*/

const React = require('react');

class Head extends React.Component {
Expand Down
Loading