首页 > 其他 > 详细

jekyll 安装使用

时间:2017-04-04 17:25:02      阅读:250      评论:0      收藏:0      [点我收藏+]
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 安装使用

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!