mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 02:23:30 +00:00
Merge pull request #51 from calmdev/fix/gh-enterprise
Fixes --githubHost option for use with Github Enterprise.
This commit is contained in:
@@ -36,7 +36,7 @@ Options for commands `build` and `serve` are:
|
||||
-o, --output <directory> Path to output directory, defaults to ./_book
|
||||
-f, --format <name> Change generation format, defaults to site, availables are: site, page, pdf, json
|
||||
-i, --intro <intro> Description of the book to generate
|
||||
-gh, --githubHost <url> The url of the github host (defaults to https://github.com/)
|
||||
--githubHost <url> The url of the github host (defaults to https://github.com/)
|
||||
--theme <path> Path to theme directory
|
||||
```
|
||||
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ var buildCommand = function(command, action) {
|
||||
.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/')
|
||||
.option('--githubHost <url>', 'The url of the github host (defaults to https://github.com/')
|
||||
.option('--theme <path>', 'Path to theme directory')
|
||||
.action(action);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user