From 7fe189907ecdaf0625ab21db25b19a643d741f73 Mon Sep 17 00:00:00 2001 From: Levi Lewis Date: Mon, 7 Apr 2014 13:11:44 -0400 Subject: [PATCH] Fixes --githubHost option for use with Github Enterprise. --- README.md | 2 +- bin/build.js | 1 + bin/gitbook.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 810dfa6d7..3110a6fe1 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Options for commands `build` and `serve` are: -o, --output Path to output directory, defaults to ./_book -f, --format Change generation format, defaults to site, availables are: site, page, pdf, json -i, --intro Description of the book to generate --gh, --githubHost The url of the github host (defaults to https://github.com/) +--githubHost The url of the github host (defaults to https://github.com/) --theme Path to theme directory ``` diff --git a/bin/build.js b/bin/build.js index 6050b885f..4f7429ae7 100644 --- a/bin/build.js +++ b/bin/build.js @@ -42,6 +42,7 @@ var buildFunc = function(dir, options) { title: title, description: options.intro, github: githubID, + githubHost: options.githubHost, generator: options.format, theme: options.theme }) diff --git a/bin/gitbook.js b/bin/gitbook.js index ab6e043b0..4ffa6cfa5 100755 --- a/bin/gitbook.js +++ b/bin/gitbook.js @@ -23,7 +23,7 @@ var buildCommand = function(command, action) { .option('-t, --title ', 'Name of the book to generate, defaults to repo name') .option('-i, --intro ', 'Description of the book to generate') .option('-g, --github ', 'ID of github repo like : username/repo') - .option('-gh, --githubHost ', 'The url of the github host (defaults to https://github.com/') + .option('--githubHost ', 'The url of the github host (defaults to https://github.com/') .option('--theme ', 'Path to theme directory') .action(action); }