Compare commits

...

5 Commits

Author SHA1 Message Date
Samy Pessé cb313c0fab Bump version to 2.0.0-alpha.2 2015-02-04 10:02:51 +01:00
Samy Pessé 4f25056017 Update gitbook-parsers@0.3.1 2015-02-03 14:34:20 +01:00
Samy Pessé 5baebb8754 Set "info" as default log level 2015-02-03 10:53:33 +01:00
Samy Pessé 1eea994e73 Fix init command 2015-02-03 10:52:39 +01:00
Samy Pessé 8a597ff3f1 Fix installation instruction 2015-02-03 10:40:22 +01:00
3 changed files with 10 additions and 9 deletions
+3 -2
View File
@@ -15,10 +15,11 @@ GitBook is a command line tool (and Node.js library) for building beautiful book
GitBook can be installed from **NPM** using:
```
$ npm install gitbook -g
$ npm install gitbook-cli -g
```
Create the directories and files for a book from its [SUMMARY.md](https://github.com/GitbookIO/gitbook#book-format) file using
Create the directories and files for a book from its [SUMMARY.md](https://github.com/GitbookIO/gitbook#book-format) file (if existing) using
```
$ gitbook init
```
+5 -5
View File
@@ -33,7 +33,7 @@ var Book = function(root, context, parent) {
},
// Log level
logLevel: logger.LEVELS
logLevel: "info"
});
// Log
@@ -712,10 +712,10 @@ Book.init = function(root) {
}, []);
};
book.log.infoLn("init book at", root);
book.log.info.ln("init book at", root);
return fs.mkdirp(root)
.then(function() {
book.log.infoLn("detect structure from SUMMARY (if it exists)");
book.log.info.ln("detect structure from SUMMARY (if it exists)");
return book.parseSummary();
})
.fail(function() {
@@ -748,7 +748,7 @@ Book.init = function(root) {
return fs.exists(absolutePath)
.then(function(exists) {
book.log.infoLn("create", chapter.path);
book.log.info.ln("create", chapter.path);
if(exists) return;
return fs.mkdirp(path.dirname(absolutePath))
@@ -759,7 +759,7 @@ Book.init = function(root) {
}));
})
.then(function() {
book.log.infoLn("initialization is finished");
book.log.info.ln("initialization is finished");
});
};
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "gitbook",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"homepage": "https://www.gitbook.com",
"description": "Library and cmd utility to generate GitBooks",
"main": "lib/index.js",
@@ -12,7 +12,7 @@
"resolve": "0.6.3",
"fs-extra": "0.14.0",
"fstream-ignore": "1.0.2",
"gitbook-parsers": "0.3.0",
"gitbook-parsers": "0.3.1",
"nunjucks": "git+https://github.com/SamyPesse/nunjucks.git#4019d1b7379372336b86ce1b0bf84352a2029747",
"nunjucks-autoescape": "0.1.0",
"nunjucks-filter": "0.1.0",