mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
wip
This commit is contained in:
+21
-17
@@ -346,12 +346,6 @@ function checkoutMasterDocs() {
|
||||
// and make versioned sidebar?
|
||||
return seq; //copy
|
||||
})
|
||||
.then(() => {
|
||||
|
||||
})
|
||||
.then(() => {
|
||||
return generateAutodocs();
|
||||
})
|
||||
.then(() => {
|
||||
console.log(`My sidebar: ${JSON.stringify(sidebarMetadata)}`);
|
||||
|
||||
@@ -488,21 +482,31 @@ function generateMetatadaFile(categories) {
|
||||
// END DOM
|
||||
|
||||
|
||||
function checkoutAutodocs() {
|
||||
return Promise.resolve()
|
||||
.then(() => {
|
||||
return generateAutodocs();
|
||||
})
|
||||
.finally(function() {
|
||||
server.close();
|
||||
}).catch(function(e) {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
|
||||
if (argv.clean) {
|
||||
cleanFiles();
|
||||
}
|
||||
|
||||
if (argv.autodocs) {
|
||||
runChecks();
|
||||
// checkOutDocs();
|
||||
checkoutMasterDocs()
|
||||
.finally(function() {
|
||||
server.close();
|
||||
}).catch(function(e) {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
// if (argv.autodocs) {
|
||||
runChecks();
|
||||
// checkOutDocs();
|
||||
checkoutMasterDocs()
|
||||
.then(() => {
|
||||
checkoutAutodocs();
|
||||
})
|
||||
// }
|
||||
|
||||
/**
|
||||
* Check out gh-pages branch, cd releases/
|
||||
|
||||
Reference in New Issue
Block a user