mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 10:33:22 +00:00
Add command line option "plugins"
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
|
||||
--githubHost <url> The url of the github host (defaults to https://github.com/)
|
||||
--theme <path> Path to theme directory
|
||||
--plugins <plugins> List of plugins to use separated by ":"
|
||||
```
|
||||
|
||||
You can publish your books to our index by visiting [GitBook.io](http://www.gitbook.io)
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ var makeBuildFunc = function(converter) {
|
||||
github: options.github || repoID,
|
||||
githubHost: options.githubHost,
|
||||
generator: options.format,
|
||||
theme: options.theme
|
||||
plugins: options.plugins
|
||||
})
|
||||
);
|
||||
})
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ var buildCommand = function(command) {
|
||||
.option('-i, --intro <intro>', 'Description of the book to generate, default is extracted from readme')
|
||||
.option('-g, --github <repo_path>', 'ID of github repo like : username/repo')
|
||||
.option('--githubHost <url>', 'The url of the github host (defaults to https://github.com/')
|
||||
.option('--theme <path>', 'Path to theme directory');
|
||||
.option('--plugins <plugins>', 'List of plugins to use separated by ":"');
|
||||
};
|
||||
|
||||
buildCommand(prog.command('build [source_dir]'))
|
||||
|
||||
Reference in New Issue
Block a user