Support URLs in "github" config

Fixes GitbookIO/gitbook.io#90
This commit is contained in:
Aaron O'Mullan
2014-06-16 18:52:36 -07:00
parent c87edb155a
commit d6eb8e4c60
+9 -2
View File
@@ -224,8 +224,15 @@ var generateBook = function(options) {
options.github = null;
return null;
} else if(options.github) {
// Git already specified in options
return options.github;
// Git already specified in options
options.github = (
// Support URLs in "github" entry of book.json
parse.git.githubID(options.github) ||
// Fallback
options.github
);
return;
}
// Try auto detecting