diff --git a/scripts/prerelease.sh b/scripts/prerelease.sh index 35884c8f8e..541dfa9e0c 100644 --- a/scripts/prerelease.sh +++ b/scripts/prerelease.sh @@ -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:" diff --git a/v1/babel.config.js b/v1/babel.config.js index 7870ce2f71..01f49c7a2a 100644 --- a/v1/babel.config.js +++ b/v1/babel.config.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. + */ + module.exports = { env: { test: { diff --git a/v1/jest.transform.js b/v1/jest.transform.js index 53f44714ea..007fdfb91b 100644 --- a/v1/jest.transform.js +++ b/v1/jest.transform.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 babelConfig = require('./babel.config'); module.exports = require('babel-jest').createTransformer(babelConfig); diff --git a/v1/lib/__tests__/build-files.test.js b/v1/lib/__tests__/build-files.test.js index fe524945fa..127f87fe32 100644 --- a/v1/lib/__tests__/build-files.test.js +++ b/v1/lib/__tests__/build-files.test.js @@ -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'); diff --git a/v1/lib/server/__tests__/__fixtures__/metadata-subcategories.js b/v1/lib/server/__tests__/__fixtures__/metadata-subcategories.js index 344e147c95..627a4ad6e4 100644 --- a/v1/lib/server/__tests__/__fixtures__/metadata-subcategories.js +++ b/v1/lib/server/__tests__/__fixtures__/metadata-subcategories.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. + */ + module.exports = { 'en-doc1': { id: 'en-doc1', diff --git a/v1/lib/server/__tests__/__fixtures__/metadata.js b/v1/lib/server/__tests__/__fixtures__/metadata.js index 8ca4afeaf0..799694feeb 100644 --- a/v1/lib/server/__tests__/__fixtures__/metadata.js +++ b/v1/lib/server/__tests__/__fixtures__/metadata.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. + */ + module.exports = { 'en-doc1': { id: 'en-doc1', diff --git a/v1/lib/server/__tests__/__fixtures__/sidebar-subcategories.js b/v1/lib/server/__tests__/__fixtures__/sidebar-subcategories.js index c865e679a3..9181adde65 100644 --- a/v1/lib/server/__tests__/__fixtures__/sidebar-subcategories.js +++ b/v1/lib/server/__tests__/__fixtures__/sidebar-subcategories.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. + */ + module.exports = { docs: { 'First Category': ['doc1', 'doc2'], diff --git a/v1/website/data/users.js b/v1/website/data/users.js index 7e1edf2be2..a093093e0d 100644 --- a/v1/website/data/users.js +++ b/v1/website/data/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. + */ + module.exports = [ // Please add your logo in alphabetical order of caption. { diff --git a/v1/website/static/css/code-blocks-buttons.css b/v1/website/static/css/code-blocks-buttons.css index d83896ccd7..5988ed06d9 100644 --- a/v1/website/static/css/code-blocks-buttons.css +++ b/v1/website/static/css/code-blocks-buttons.css @@ -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; @@ -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 { @@ -27,7 +34,7 @@ pre .btnIcon:hover { .btnIcon svg { fill: currentColor; - margin-right: .4em; + margin-right: 0.4em; } .btnIcon__label { diff --git a/v1/website/static/js/code-blocks-buttons.js b/v1/website/static/js/code-blocks-buttons.js index e4fb913d98..44a9dd9c0e 100644 --- a/v1/website/static/js/code-blocks-buttons.js +++ b/v1/website/static/js/code-blocks-buttons.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. + */ + // Turn off ESLint for this file because it's sent down to users as-is. /* eslint-disable */ window.addEventListener('load', function() {