Extract docs during static site generation

Summary:
Addresses an issue introduced in 6a8200df95. While that commit successfully avoids extracting the docs while developing locally, it neglected to handle the case when the site was being built for deployment. As a result this broke CI.

Options are now optional as they should be, and the site generation script will ensure docs are built during deployment.
Closes https://github.com/facebook/react-native/pull/12267

Differential Revision: D4523906

Pulled By: lacker

fbshipit-source-id: ee00d5653eb98b16b94734299bb15ba5473a0f61
This commit is contained in:
Hector Ramos 2017-02-07 14:29:29 -08:00 committed by Facebook Github Bot
parent d8748233ca
commit 11707d5ce2
2 changed files with 5 additions and 1 deletions

View File

@ -92,6 +92,10 @@ function buildFile(layout, metadata, rawContent) {
}
function execute(options) {
if (options === undefined) {
options = {};
}
var DOCS_MD_DIR = '../docs/';
var BLOG_MD_DIR = '../blog/';

View File

@ -16,7 +16,7 @@ var mkdirp = require('mkdirp');
var server = require('./server.js');
var Feed = require('feed');
require('./convert.js')();
require('./convert.js')({extractDocs: true});
server.noconvert = true;
// Sadly, our setup fatals when doing multiple concurrent requests