diff options
-rw-r--r-- | lib/generate/index.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/generate/index.js b/lib/generate/index.js index 740f6ba..444f75f 100644 --- a/lib/generate/index.js +++ b/lib/generate/index.js @@ -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 |