- Gitbook命令行速览
Gitbook命令行速览
Gitbook是一个命令行工具,使用方法:
本地预览
$ gitbook serve ./图书名称
输出一个静态网站
$ gitbook build ./repository --output=./outputFolder
查看帮助
$ gitbook -hUsage: gitbook [options] [command]Commands:build [options] [source_dir] Build a gitbook from a directoryserve [options] [source_dir] Build then serve a gitbook from a directorypdf [options] [source_dir] Build a gitbook as a PDFebook [options] [source_dir] Build a gitbook as a eBookinit [source_dir] Create files and folders based on contents of SUMMARY.mdOptions:-h, --help output usage information-V, --version output the version number
