jekyll windows 折腾小记

ruby&jekyll:
   
   
  1. choco install ruby -y
  2. gem install jekyll

使用choco安装ruby和jekyll还算顺利。

然后新建项目文件夹
   
   
  1. jekyll new myblog
  2. cd myblog

然后看到了语法高亮插件, https://jekyllrb.com/docs/templates/#code-snippet-highlighting  果断选择支持语言多的,然后就 安装了python 安装P ygments (github并不支持 别折腾了 20160914更新)

(
安装 pygments.rb 还需要Ruby的DevKit 
choco install ruby2.devkit 失败了
但是文件已经下载下来了
按照 https://github.com/oneclick/rubyinstaller/wiki/Development-Kit的提示
C:\tools\DevKit2手工执行了 ruby dk.rb init,修改ruby安装路径,然后 r uby dk.rb install 才好
)

然后看到 https://jekyllrb.com/docs/quickstart/ 里面有bundle install命令,大概就是下载各种依赖包,包括主题之类的。
结果bundle install  遇到了openssl和gem镜像之间的问题 利用  https://gems.ruby-china.org/ 的http镜像解决问题
   
   
  1. bundle config mirror.https://rubygems.org https://gems.ruby-china.org

然后jekyll build、jekyll serve又遇到了主题空白问题 
解决方案是copy C:\tools\ruby23\lib\ruby\gems\2.3.0\gems\minima-1.0.1\_layouts文件夹 到 当前项目路径内。


如果想要传到github pages 那么还需要按照 https://help.github.com/articles/using-jekyll-as-a-static-site-generator-with-github-pages/  的提示进行少许修改。

还有,这一切都是挂着shadowsocks,开启了国外ip的代理,才顺利进行的。
欲哭无泪。
如果想要传到github pages 那么还需要按照 https://help.github.com/articles/using-jekyll-as-a-static-site-generator-with-github-pages/  的提示进行少许修改。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值