The final purpose
- add jekyll folders and files on my git page repository
- add markdown file in
_posts
, then your article will show on my github page
How to setup jekyll on windows
- install ruby
- install DevKit
-
setup mirror image
gem sources -a https://ruby.taobao.org/
gem sources -l
** CURRENT SOURCES **
https://ruby.taobao.org
请确保只有 ruby.taobao.org
-
install package using
gem
gem install bundler
gem install github-pages
gem install jekyll
-
the i start myblog
jekyll new myblog
cd myblog
jekyll serve
then there will be some folders and files are created by jekyll. and this folders and files will be holded by my github repository
-
encounter a problem:
Generating… Liquid Exception: No such file or directory - python c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/pygments.rb-0.4.2/lib/pygments/mentos.py in 2013-04-22-yizeng-hello-world.md
-
install pygments
- it seems pygments is installed by default when i install ruby. the folder is:
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\pygments.rb-0.6.3\lib
- add
highlighter: pygments
at the end of _config.yml - but i have run the following command:
gem install pygments.rb
, and restart the computer
- it seems pygments is installed by default when i install ruby. the folder is:
Please add the following to your Gemfile to avoid polling for changes: gem ‘wdm’, ‘>= 0.1.0’ if Gem.win_platform?
- instal wdm
gem install wdm
-
Test Python code
#! /usr/bin/env python
#coding=utf-8
class Link:
def __init__(self,value,next = None):
self.value = value
self.next = next
def show(self):
while self is not None:
print(self.value)
self = self.next
def insert(self,value):
while self.next is not None:
self = self.next
self.next = Link(value)
node1 = Link(0)
for x in range(5):
node1.insert(x)
node1.show()
Reference
- Setup Jekyll on Windows (there is a troubleshooting section)
- Jekyll 搭建静态博客(this is the target blog i want to make)