Add OSS website test, clean up test names, remove website dependency on sass

Reviewed By: ericvicenti

Differential Revision: D4726864

fbshipit-source-id: 38c13a08d42d11533a02c14a9acd5a05bbce307f
This commit is contained in:
Martin Konicek 2017-03-30 15:25:22 -07:00 committed by Facebook Github Bot
parent c31a65669e
commit e82c2fbbe5
15 changed files with 2 additions and 2552 deletions

View File

@ -18,7 +18,7 @@ if [ -z "$(buck --version)" ]; then
echo "Your Buck install is broken."
if [ -d "/opt/facebook" ]; then
SUGGESTED="ff27d5270ecaa92727cd5a19954e62298fa78f09"
SUGGESTED="b9b76a3a5a086eb440a26d1db9b0731875975099"
echo "FB laptops ship with a Buck config that is not compatible with open "
echo "source. FB Buck requires the environment to set a buck version, but "
echo "the open source version of Buck forbids that."

View File

@ -22,11 +22,10 @@
"jstransform": "11.0.3",
"memory-cache": "^0.1.6",
"mkdirp": "^0.5.1",
"node-sass-middleware": "^0.11.0",
"optimist": "0.6.0",
"react": "~0.13.0",
"react-docgen": "^2.9.0",
"react-page-middleware": "git://github.com/facebook/react-page-middleware.git",
"react-page-middleware": "0.4.1",
"remove-markdown": "^0.1.0",
"request": "^2.69.0",
"semver-compare": "^1.0.0"

View File

@ -14,7 +14,6 @@ const http = require('http');
const optimist = require('optimist');
const path = require('path');
const reactMiddleware = require('react-page-middleware');
const sassMiddleware = require('node-sass-middleware');
const argv = optimist.argv;
@ -43,14 +42,6 @@ const buildOptions = {
};
const app = connect()
.use(sassMiddleware({
/* Options */
src: path.join(PROJECT_ROOT,'styles'),
dest: path.join(FILE_SERVE_ROOT,'react-native','css'),
response: false,
outputStyle: 'extended',
prefix: '/react-native/css',
}))
.use(function(req, res, next) {
// convert all the md files on every request. This is not optimal
// but fast enough that we don't really need to care right now.

View File

@ -1,186 +0,0 @@
/** Blog **/
.entry-header {
margin: 0;
}
.entry-header h1 {
margin: 0;
font-size: 33px;
line-height: 36px;
line-height: 1;
}
.entry-header h4 {
margin: 0 0 10px;
line-height: 16px;
font-size: 14px;
line-height: 1;
}
.entry-header .author {
color: #5A6b77;
font-weight: 700;
}
.entry-header .date {
color: rgba(102,99,122,.5);
}
.entry-readmore {
margin: 12px 0 0;
}
.entry-share {
padding: 36px 0;
display: block;
text-align: left;
}
.entry-excerpt {
min-width: 320px;
max-width: 640px;
margin: 0 auto 40px;
padding-bottom: 40px;
border-bottom: 1px solid #EDEDED;
}
.entry-body {
min-width: 320px;
max-width: 640px;
margin: 0 auto;
}
.small-title {
font-size: 10px;
color: #66637A;
letter-spacing: .4rem;
text-transform: uppercase;
font-weight: 400;
line-height: 12px;
}
.entry-share .small-title {
float: left;
width: 50%;
}
.social-buttons {
padding-top: 7px;
float: left;
width: 50%;
}
article {
margin: 0 0 40px 0;
}
article h2 {
font-size: 26px;
line-height: 1;
}
article li {
line-height: 28px;
}
.author-info {
margin-top: 26px;
text-align: center;
border-bottom: 1px solid #f1f1f1;
padding-bottom: 20px
}
.the-image {
position: relative;
display: block;
width: 64px;
height: 64px;
margin: 0 auto;
border-radius: 50%;
background-position: center center;
background-color: #fff;
background-size: cover;
}
.author-image {
position: relative;
}
.author-image:before {
content: "";
display: block;
position: absolute;
width: 100%;
height: 1px;
top: 50%;
left: 0;
background-color: #F1F1F1;
}
.posted-on {
font-size: 12px;
color: rgba(102,99,122,.29);
margin-bottom: 0;
margin-top: 15px;
}
.name-title {
margin-top: 2px;
font-size: 22px;
font-weight: 400;
margin: 3px 0 5px;
color: #5A6B77;
}
.name-title a {
color: #5A6B77;
}
.name-title .title {
color: rgba(102,99,122,.44);
}
.btn {
background: 0 0;
color: $color-react-native-blue;
min-width: 0;
border: 1px solid $color-react-native-blue;
display: inline-block;
padding: 9px 18px;
border-radius: 4px;
text-align: center;
font-size: 12px;
}
.btn a {
text-decoration: none !important;
}
.btn:hover {
text-decoration: none !important;
}
.video-container {
border-radius: 4px;
background-clip: padding-box;
margin: 0 0 18px;
height: 180px;
width: 100%;
background-size: cover;
background-position: center center;
position: relative;
height: 0;
overflow: hidden;
}
@media (min-width: 760px) {
.video-container {
height: 345px;
}
}
#mc_embed_signup {
clear:left;
width:100%;
}

View File

@ -1,109 +0,0 @@
/** Footer **/
footer.nav-footer {
box-sizing: border-box;
border: none;
font-weight: 300;
color: #202020;
font-size: 15px;
line-height: 24px;
background: #012129;
box-shadow: inset 0 10px 10px -5px rgba(0,0,0,0.2);
padding-top: 2em;
padding-bottom: 2em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
footer .sitemap {
display: flex;
justify-content: space-between;
max-width: 1080px;
margin: 0 auto 1em;
}
footer .sitemap div {
flex: 1;
}
footer .sitemap .nav-home {
display: table;
margin: -12px 20px 0 0;
padding: 10px;
width: 50px;
height: 50px;
opacity: 0.4;
transition: opacity 0.15s ease-in-out;
}
footer .sitemap .nav-home:hover,
footer .sitemap .nav-home:focus {
opacity: 1.0;
}
@media screen and (max-width: 768px) {
footer .sitemap {
display: none;
}
footer .newsletter {
display: none;
}
#mc_embed_signup {
display: none;
}
}
footer .sitemap a {
color: white;
display: table;
margin: 2px -10px;
padding: 3px 10px;
}
footer .sitemap a:hover,
footer .sitemap a:focus {
color: $color-react-native-blue;
text-decoration: none;
}
footer .sitemap h5 > a:hover,
footer .sitemap h5 > a:focus {
color: white;
text-decoration: none;
}
footer .sitemap h5,
footer .sitemap h6 {
margin: 0 0 10px;
}
footer .sitemap h5,
footer .sitemap h6,
footer .sitemap h5 > a,
footer .sitemap h6 > a {
color: $color-react-native-blue;
font-weight: 900;
}
footer .sitemap h5 > a,
footer .sitemap h6 > a {
margin: 0 -10px;
}
footer .fbOpenSource {
display: block;
margin: 1em auto;
opacity: 0.4;
transition: opacity 0.15s ease-in-out;
width: 170px;
}
footer .fbOpenSource:hover {
opacity: 1.0;
}
footer .copyright {
color: rgba(255, 255, 255, 0.4);
text-align: center;
}
footer .newsletter {
display: flex;
justify-content: space-between;
max-width: 640px;
margin: 0 auto 1em;
}
footer .newsletter h5 {
color: $color-react-native-blue;
margin: 0 0 10px;
}

View File

@ -1,56 +0,0 @@
/** Help **/
.helpSection h2 {
font-size: 24px;
}
.help-row {
margin: 50px 0;
}
.help-row:after {
content: "";
display: table;
clear: both;
}
.help-col {
float: left;
}
.help-col p {
font-size: 16px;
}
.help-col h3 {
color: #2d2d2d;
font-size: 18px;
line-height: 28px;
font-weight: normal;
}
@media (min-width: 600px) {
.help-col {
float: left;
margin-left: 40px;
width: 240px;
}
.help-col:first-child {
margin-left: 0;
}
}
.help-list {
padding: 0;
list-style: none;
margin: 1.25em 0 1em 0;
}
.entry ul, li {
margin: 0;
}
.help-list .help-list-entry {
padding: 16px 0;
border-top: 1px solid #f1eff0;
}

View File

@ -1,39 +0,0 @@
.hero {
background: $color-hero-bg;
padding: 50px 0;
color: #FDF3E7;
font-weight: 300;
}
.hero .text {
font-size: 300%;
text-align: center;
}
.hero .minitext {
font-size: 24px;
text-align: center;
}
.buttons-unit {
margin-top: 40px;
text-align: center;
}
.buttons-unit a {
color: #FA6900;
}
.buttons-unit .button {
font-size: 24px;
background: $color-react-native-blue;
color: #fafafa;
}
.buttons-unit .button:active {
background: #0485A9;
}
.buttons-unit.downloads {
margin: 30px 0;
}

View File

@ -1,83 +0,0 @@
/** Showcase **/
.home-showcase-section {
max-width: 800px;
margin: 20px auto 100px auto;
text-align: center;
}
.home-showcase-section p {
max-width: 540px;
margin: 0 auto;
}
.footnote {
font-size: 12px;
color: rgba(0, 0, 0, 0.4);
}
.home-showcase-section .showcase img {
width: 100px;
height: 100px;
border-radius: 20px;
}
.showcaseHeader {
padding-bottom: 15px;
padding-top: 15px;
text-align: center;
}
.showcase {
margin: 30px auto 30px auto;
width: 100%;
display: inline-block;
text-align: center;
vertical-align: top;
}
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px) {
.showcase {
width: 50%;
}
}
@media only screen
and (min-device-width: 1024px) {
.showcase {
width: 25%;
}
}
.showcase h3 {
margin-bottom: 0px;
line-height: 20px;
padding-left: 5px;
padding-right: 5px;
font-size: 16px;
}
.showcase p {
margin-top: 5px;
}
.showcase a {
}
.showcase h3, .showcase p {
color: rgb(72, 72, 72);
}
.showcase img {
width: 100px;
height: 100px;
border-radius: 20px;
}
.pinned img {
width: 150px;
border-radius: 20px;
}

View File

@ -1,13 +0,0 @@
/** Web player **/
.web-player > iframe, .web-player > .prism {
display: none;
}
.web-player.desktop > iframe {
display: block;
}
.web-player.mobile > .prism {
display: block;
}

View File

@ -1,7 +0,0 @@
@mixin vendorize($property, $value) {
-moz-#{$property}: $value;
-ms-#{$property}: $value;
-o-#{$property}: $value;
-webkit-#{$property}: $value;
#{$property}: $value;
}

View File

@ -1,25 +0,0 @@
$color-react-native-blue: #05A5D1 !default;
$color-react-native-blue-light: #F5FCFF !default;
$color-react-native-blue-dark: #0484A7 !default;
$color-react-native-blue-darker: #025268 !default;
$color-react-native-gray: #3B3738 !default;
$color-react-native-gray-dark: #2D2D2D !default;
$color-react-native-gray-darkest: #222 !default;
$color-nav-bg: $color-react-native-gray-darkest;
$color-hero-bg: $color-react-native-gray-dark;
$color-body-bg: $color-react-native-blue-light;
$color-sidenav-header-bg: $color-react-native-gray-darkest;
$color-sidenav-contents-bg: rgba($color-react-native-gray, 0.05);
$color-sidenav-title: $color-react-native-blue-darker;
$color-sidenav-title-active: $color-react-native-blue;
$color-h1: $color-react-native-blue-darker;
$color-reference-title: $color-react-native-blue-darker;
$color-algolia-search: lighten($color-nav-bg,5%);
$font-proxima-nova: proxima-nova;
$font-helvetica-neue: "Helvetica Neue";
$font-default: $font-proxima-nova, $font-helvetica-neue, Helvetica, Arial, sans-serif;

View File

@ -1,86 +0,0 @@
/** Algolia Doc Search **/
div.algolia-search-wrapper {
display: inline-block;
vertical-align: top;
margin-left: 15px;
}
@media screen and (max-width: 960px) {
div.algolia-search-wrapper {
display: none;
}
}
input#algolia-doc-search {
background: transparent url('../img/search.png') no-repeat 10px center;
background-size: 16px 16px;
font-family: inherit;
padding: 0 10px;
padding-left: 35px;
margin-top: 10px;
height: 30px;
font-size: 16px;
line-height: 20px;
background-color: $color-algolia-search;
border-radius: 4px;
color: inherit;
outline: none;
border: none;
width: 170px;
@include vendorize(transition, .5s width ease);
}
input#algolia-doc-search::placeholder {
color: rgba(white, 0.8);
}
input#algolia-doc-search::-moz-placeholder {
color: rgba(white, 0.8);
}
input#algolia-doc-search:-ms-input-placeholder {
color: rgba(white, 0.8);
}
input#algolia-doc-search::-webkit-input-placeholder {
color: rgba(white, 0.8);
}
input#algolia-doc-search:focus {
width: 220px;
}
.algolia-autocomplete {
vertical-align: top;
height: 53px;
.aa-dropdown-menu {
margin-left: -210px;
margin-top: -4px;
}
}
.algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight {
background-color: $color-react-native-blue;
}
.aa-cursor .algolia-docsearch-suggestion--content {
color: $color-react-native-blue;
}
.aa-cursor .algolia-docsearch-suggestion {
background: hsl(198, 100%, 96%);
}
.algolia-docsearch-suggestion {
border-bottom-color: hsl(198, 100%, 94%);
&--category-header {
background-color: #3B3738;
}
&--highlight {
color: $color-react-native-blue;
}
&--subcategory-column {
border-right-color: hsl(198, 100%, 94%);
background-color: hsl(198, 100%, 96%);
color: #3B3738;
}
}

View File

@ -1,30 +0,0 @@
.prism {
white-space: pre-wrap;
font-family: 'source-code-pro', Menlo, 'Courier New', Consolas, monospace;
font-size: 13px;
line-height: 20px;
border-left: 4px solid $color-react-native-blue;
padding: 5px 10px;
background-color: rgba(5, 165, 209, 0.05);
overflow: auto;
}
.prism + .prism {
margin-top: 10px;
}
.token.keyword {
color: #1990B8;
}
.token.string, .token.regex {
color: #2F9C0A;
}
.token.boolean, .token.number {
color: #C92C2C;
}
.token.comment {
color: #7D8B99;
}

View File

@ -1,461 +0,0 @@
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Change the default font family in all browsers (opinionated).
* 2. Correct the line height in all browsers.
* 3. Prevent adjustments of font size after orientation changes in
* IE on Windows Phone and in iOS.
*/
html {
font-family: sans-serif; /* 1 */
line-height: 1.15; /* 2 */
-ms-text-size-adjust: 100%; /* 3 */
-webkit-text-size-adjust: 100%; /* 3 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers (opinionated).
*/
body {
margin: 0;
}
/**
* Add the correct display in IE 9-.
*/
article,
aside,
footer,
header,
nav,
section {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* Add the correct display in IE 9-.
* 1. Add the correct display in IE.
*/
figcaption,
figure,
main { /* 1 */
display: block;
}
/**
* Add the correct margin in IE 8.
*/
figure {
margin: 1em 40px;
}
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* 1. Remove the gray background on active links in IE 10.
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
*/
a {
background-color: transparent; /* 1 */
-webkit-text-decoration-skip: objects; /* 2 */
}
/**
* Remove the outline on focused links when they are also active or hovered
* in all browsers (opinionated).
*/
a:active,
a:hover {
outline-width: 0;
}
/**
* 1. Remove the bottom border in Firefox 39-.
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
*/
b,
strong {
font-weight: inherit;
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font style in Android 4.3-.
*/
dfn {
font-style: italic;
}
/**
* Add the correct background and color in IE 9-.
*/
mark {
background-color: #ff0;
color: #000;
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Add the correct display in IE 9-.
*/
audio,
video {
display: inline-block;
}
/**
* Add the correct display in iOS 4-7.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Remove the border on images inside links in IE 10-.
*/
img {
border-style: none;
}
/**
* Hide the overflow in IE.
*/
svg:not(:root) {
overflow: hidden;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers (opinionated).
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: sans-serif; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
* controls in Android 4.
* 2. Correct the inability to style clickable types in iOS and Safari.
*/
button,
html [type="button"], /* 1 */
[type="reset"],
[type="submit"] {
-webkit-appearance: button; /* 2 */
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Change the border, margin, and padding in all browsers (opinionated).
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* 1. Add the correct display in IE 9-.
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
display: inline-block; /* 1 */
vertical-align: baseline; /* 2 */
}
/**
* Remove the default vertical scrollbar in IE.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10-.
* 2. Remove the padding in IE 10-.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in IE 9-.
* 1. Add the correct display in Edge, IE, and Firefox.
*/
details, /* 1 */
menu {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Scripting
========================================================================== */
/**
* Add the correct display in IE 9-.
*/
canvas {
display: inline-block;
}
/**
* Add the correct display in IE.
*/
template {
display: none;
}
/* Hidden
========================================================================== */
/**
* Add the correct display in IE 10-.
*/
[hidden] {
display: none;
}

File diff suppressed because it is too large Load Diff