Add command gitbook pdf to generate PDF

This commit is contained in:
Samy Pessé
2014-04-05 20:21:51 -07:00
parent 465188cae6
commit 9ffec175a5
5 changed files with 64 additions and 116 deletions
+6
View File
@@ -82,6 +82,11 @@ function serveDir(dir, port) {
return d.promise;
}
function logError(err) {
console.log(err.message || err);
return Q.reject(err);
};
// Exports
module.exports = {
@@ -89,4 +94,5 @@ module.exports = {
githubID: githubID,
titleCase: titleCase,
serveDir: serveDir,
logError: logError
};