This commit is contained in:
Hector Ramos
2017-10-31 11:51:47 -07:00
parent 292f035ae8
commit e5332504cc
+21 -17
View File
@@ -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/