summaryrefslogtreecommitdiffstats
path: root/bin/gitbook.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-04 16:51:28 +0200
committerSamy Pessé <samypesse@gmail.com>2014-04-04 16:51:28 +0200
commit57e2595a3ea65de63822d105010b2f75cd50636c (patch)
treeaffad469a82e9668ffa5819ce26af9ca6ac0efd0 /bin/gitbook.js
parentcb9a0b82ba0478b9a5b37de6f920edff474312e1 (diff)
parentb1314273bb44648547adbd1e2b7b724903ac6020 (diff)
downloadgitbook-57e2595a3ea65de63822d105010b2f75cd50636c.zip
gitbook-57e2595a3ea65de63822d105010b2f75cd50636c.tar.gz
gitbook-57e2595a3ea65de63822d105010b2f75cd50636c.tar.bz2
Merge pull request #20 from mintbridge/github-host-url
Adding config option for github host
Diffstat (limited to 'bin/gitbook.js')
-rwxr-xr-xbin/gitbook.js2
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) {