執行
$ gitbook init
顯示
info: init book at /home/user/Project/Gitbook/demo-book
info: detect structure from SUMMARY (if it exists)
info: create SUMMARY.md
info: create README.md
info: initialization is finished
Done, without error
會產生兩個檔「SUMMARY.md」和「README.md」。
$ ls -1
顯示
README.md
SUMMARY.md
$ gitbook help
可以看到
...略...
init [directory] create files and folders based on contents of SUMMARY.md
...略...