Build
Command Line Usage
Asciibook provides a asciibook
program with several commands.
build
Performs a one off build your book to ./build
(by default).
To change Asciibookâs default build behavior have a look through the Configuration.
init
Create a config file asciibook.yml
for exist AsciiDoc file.
If current directory have config file, you can run build command this way:
It will read source file and configuration in asciibook.yml
.
new
Create a new Asciibook scaffold.
help
Show help for Asciibook.
Configuration
The build configuration can be specified in a command or written to configuration file asciibook.yml
.
Setting | Command Line | Config file |
---|---|---|
Build Source Build source document. |
|
|
Formats What format needs to be generated. |
|
|
Destination Dir Change the directory of the build output. |
|
|
Theme Dir The directory where the theme is stored. |
|
|
Template Dir The directory where the template is stored. |
|
|
Page Level What level of chapters are on a separate page. 0 means the entire document is one page, default is 1. |
|
|