基本用法

Jekyll gem 在終端視窗中為你提供了一個 jekyll 可執行檔案。你可以通過多種方式使用此命令:

$ jekyll build
# => The current folder will be generated into ./_site

$ jekyll build --destination <destination>
# => The current folder will be generated into <destination>

$ jekyll build --source <source> --destination <destination>
# => The <source> folder will be generated into <destination>

$ jekyll build --watch
# => The current folder will be generated into ./_site,
#    watched for changes, and regenerated automatically.

Jekyll 還帶有一個內建的開發伺服器,允許你在本地瀏覽器中預覽生成的網站的外觀。

$ jekyll serve
# => A development server will run at http://localhost:4000/
# Auto-regeneration: enabled. Use `--no-watch` to disable.