基本用法
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.