Skip to content

Commit

Permalink
chore(v1): add Facebook copyright headers (facebook#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun authored Oct 26, 2018
1 parent c9e29c8 commit 13b23ed
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 2 deletions.
7 changes: 7 additions & 0 deletions scripts/prerelease.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

##
# 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.
#

DOCS_VERSION_COMMAND="run version"

echo "Select an option for release:"
Expand Down
7 changes: 7 additions & 0 deletions v1/babel.config.js
Original file line number Diff line number Diff line change
@@ -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.
*/

module.exports = {
env: {
test: {
Expand Down
7 changes: 7 additions & 0 deletions v1/jest.transform.js
Original file line number Diff line number Diff line change
@@ -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 babelConfig = require('./babel.config');

module.exports = require('babel-jest').createTransformer(babelConfig);
1 change: 1 addition & 0 deletions v1/lib/__tests__/build-files.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

require('@babel/polyfill');
const filepath = require('filepath');
const fm = require('front-matter');
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*/

module.exports = {
'en-doc1': {
id: 'en-doc1',
Expand Down
7 changes: 7 additions & 0 deletions v1/lib/server/__tests__/__fixtures__/metadata.js
Original file line number Diff line number Diff line change
@@ -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.
*/

module.exports = {
'en-doc1': {
id: 'en-doc1',
Expand Down
7 changes: 7 additions & 0 deletions v1/lib/server/__tests__/__fixtures__/sidebar-subcategories.js
Original file line number Diff line number Diff line change
@@ -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.
*/

module.exports = {
docs: {
'First Category': ['doc1', 'doc2'],
Expand Down
7 changes: 7 additions & 0 deletions v1/website/data/users.js
Original file line number Diff line number Diff line change
@@ -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.
*/

module.exports = [
// Please add your logo in alphabetical order of caption.
{
Expand Down
11 changes: 9 additions & 2 deletions v1/website/static/css/code-blocks-buttons.css
Original file line number Diff line number Diff line change
@@ -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.
*/

/* "Copy" code block button */
pre {
position: relative;
Expand All @@ -13,7 +20,7 @@ pre .btnIcon {
color: #fff;
background-color: transparent;
height: 30px;
transition: all .25s ease-out;
transition: all 0.25s ease-out;
}

pre .btnIcon:hover {
Expand All @@ -27,7 +34,7 @@ pre .btnIcon:hover {

.btnIcon svg {
fill: currentColor;
margin-right: .4em;
margin-right: 0.4em;
}

.btnIcon__label {
Expand Down
7 changes: 7 additions & 0 deletions v1/website/static/js/code-blocks-buttons.js
Original file line number Diff line number Diff line change
@@ -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.
*/

// Turn off ESLint for this file because it's sent down to users as-is.
/* eslint-disable */
window.addEventListener('load', function() {
Expand Down

0 comments on commit 13b23ed

Please sign in to comment.