码迷,mamicode.com
首页 > 其他好文 > 详细

jekyll 安装使用

时间:2017-04-04 17:25:02      阅读:429      评论:0      收藏:0      [点我收藏+]

标签:install   watch   bundle   site   条件   文件夹   生成   build   建议   

1. 安装
 
  条件: ruby gem 注意版本,同时建议使用国内的镜像
  
  1. gem install jekyll bundler
 
2. 创建网站
 
  1. jekyll new my-awesome-site
 
3.  启动
  1. cd my-awesome-site
  2. bundle exec jekyll serve
 
4. 基本启动命令
  1. $ jekyll build
  2. #=>当前文件夹中的内容将会生成到./_site 文件夹中。
  3. $ jekyll build --destination <destination>
  4. #=>当前文件夹中的内容将会生成到目标文件夹<destination>中。
  5. $ jekyll build --source <source>--destination <destination>
  6. #=>指定源文件夹<source>中的内容将会生成到目标文件夹<destination>中。
  7. $ jekyll build --watch
  8. #=>当前文件夹中的内容将会生成到./_site 文件夹中,
  9. #查看改变,并且自动再生成。
 
5. 参考地址
 
  1. http://jekyllrb.com/
  2. http://jekyllcn.com (中文)
 

jekyll 安装使用

标签:install   watch   bundle   site   条件   文件夹   生成   build   建议   

原文地址:http://www.cnblogs.com/rongfengliang/p/6665424.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!