diff options
author | Paul Dixon <paul.dixon@durham.ac.uk> | 2014-04-04 14:55:08 +0100 |
---|---|---|
committer | Paul Dixon <paul.dixon@durham.ac.uk> | 2014-04-04 14:55:08 +0100 |
commit | b1314273bb44648547adbd1e2b7b724903ac6020 (patch) | |
tree | affad469a82e9668ffa5819ce26af9ca6ac0efd0 /bin/gitbook.js | |
parent | cb9a0b82ba0478b9a5b37de6f920edff474312e1 (diff) | |
download | gitbook-b1314273bb44648547adbd1e2b7b724903ac6020.zip gitbook-b1314273bb44648547adbd1e2b7b724903ac6020.tar.gz gitbook-b1314273bb44648547adbd1e2b7b724903ac6020.tar.bz2 |
Adding config option for github host
- this config option allows the github host url to be set to
something other than github.com, mainly so that github enterprise
users can change the url to their private host but will also
work with bitbucket
Diffstat (limited to 'bin/gitbook.js')
-rwxr-xr-x | bin/gitbook.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/gitbook.js b/bin/gitbook.js index 0017cb1..6e29986 100755 --- a/bin/gitbook.js +++ b/bin/gitbook.js @@ -28,6 +28,7 @@ prog .option('-t, --title <name>', 'Name of the book to generate, defaults to repo name') .option('-i, --intro <intro>', 'Description of the book to generate') .option('-g, --github <repo_path>', 'ID of github repo like : username/repo') +.option('-gh, --githubHost <url>', 'The url of the github host (defaults to https://github.com/') .action(buildFunc = function(dir, options) { dir = dir || process.cwd(); outputDir = options.output || path.join(dir, '_book'); @@ -78,6 +79,7 @@ prog .option('-o, --output <directory>', 'Path to output directory, defaults to ./_book') .option('-t, --title <name>', 'Name of the book to generate, defaults to repo name') .option('-g, --github <repo_path>', 'ID of github repo like : username/repo') +.option('-gh, --githubHost <url>', 'The url of the github host (defaults to https://github.com/') .action(function(dir, options) { buildFunc(dir, options) .then(function(outputDir) { |