Generate SUMMARY.md
for Gitbook.
- Recursively scan the specified directory(current for default) with depth(2 for default) to generate
SUMMARY.md
- The posts with the prefix
_
are private, can be skipped when generatesSUMMARY.md
- Exclude specified directories
glide update
go install
./test.sh
gitbook-gen help
USAGE:
gitbook-gen [global options] command [command options] [arguments...]
VERSION:
1.0.0
DESCRIPTION:
gitbook directory, current directory for default
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--depth DEPTH, -d DEPTH DEPTH of TOC (default: 2)
--extensions EXTENSIONS, -e EXTENSIONS post EXTENSIONS (separated by commas, NO spaces, include period `.`) (default: ".md,.markdown")
--exclusions DIRECTORIES exclude DIRECTORIES (separated by commas, NO spaces) (default: "_book")
--show-all show all posts(include private)
--help, -h show help
--version, -v print the version
- Embbedded in Gitbook