准备01:搭建技术博客

(1)注册github
 
 
 
(2)开通Github Pages,创建技术博客
(2.1)Repository name:youname. github.io
(2.2)进入自动页面生成器
 

参考文章:http://blog.csdn.net/renfufei/article/details/37725057

 
(3)使用Jekyll

Jekyll是Github的其中一个作者用Ruby语言开发,服务依赖于Github,安装方法请参考Jekyll的文档

如果你第一次使用Ruby,在使用gem安装插件的时候你会非常痛苦,因为某些原因gem网站被墙导致传输的数据一直丢包,解决办法是删除原来的源改用淘宝国内镜像,具体方法请参考:http://ruby.taobao.org

参考文章:http://www.kafeitu.me/blog/2012/03/21/move-to-github.html

 
(4)windows下安装ruby

(4.1)下载安装包

http://rubyinstaller.org/downloads/

准备01:搭建技术博客_第1张图片
 
(4.2)勾选Add Ruby execuables to your PATH

准备01:搭建技术博客_第2张图片
 
(4.3)cmd检查是否安装ok

准备01:搭建技术博客_第3张图片
 
(4.4)编写ruby ,请输入 irb

准备01:搭建技术博客_第4张图片
 
 
 

(5)删除原来的源改用淘宝国内镜像

http://ruby.taobao.org

准备01:搭建技术博客_第5张图片
 
 
 
(6)安装jekyll
安装的过程中会遇到一个错误:
 

ERROR:  Error installing watir:
        The 'ffi' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

 


解决办法:
 
 

(1)下载develop-kit

http://rubyinstaller.org/downloads/
 
下载


 
 
(2)安装

准备01:搭建技术博客_第6张图片
 
 
 
 
(7)安装jekyll
gem install jekyll
 

准备01:搭建技术博客_第7张图片
 
 
(8)测试jekyll

准备01:搭建技术博客_第8张图片
 
 
该休息了~待续
http://jekyll.bootcss.com/docs/structure/
 

你可能感兴趣的:(准备01:搭建技术博客)