Hello World!

- - posted in TechChangeWorld - tagged by blogger, octopress | Comments

It’s my first blog on github.

At the moment,I decide to write my blog,TRY MY BEST,in English.

Maybe it’s hard at first. I believe it will give me a lot beyond my imagination after that.

How to build a blog on github

1, apply a account & some repo

apply a id on github and a new repo named "yourid.github.com"

2,install ruby,jekyll,markdown,etc

1
2
3
4
5
6
7
install rvm to manager ruby version,ruby 1.9 needed 
$rvm install 1.9.2 && rvm use 1.9.2
$git clone git://github.com/imathis/octopress.git octopress
$gem install rdoc
$gem install jekyll
$gem install kramdown
$easy_install Pygments

this is typical structure in jekyll frame

|-- _config.yml
|-- _includes
|-- _layouts
|   |-- default.html
|   `-- post.html
|-- _posts
|   |-- 2007-10-29-why-every-programmer-should-play-nethack.textile
|   `-- 2009-04-26-barcamp-boston-4-roundup.textile
|-- _site
`-- index.html

3,install Octopress

$ rake new_post["title"]
$ rake generate     
$ rake watch       
$ rake preview    

4, About Math Block

LaTeX + MathJax

LaTex is a document markup language and document preparation system for the TeX typesetting program

LaTex is just a format language, or just a standard. (not a lib or tool, just a language which doesn’t need installed)

MathJax is a cross-browser JavaScript library that displays mathematical equations in web browser

MathJax is a library, even though, it does not need installed either.

The easiest way to use MathJax is to link directly to the MathJax distributed network service (see Using the MathJax CDN)
http://docs.mathjax.org/en/latest/installation.html

LaTex Tools: Online LaTeX Equation Editor

ps : I am so stupid, try my best to download a lib, MathJax…. totally useless..

5, About Git

http://rogerdudler.github.io/git-guide/index.zh.html

http://marklodato.github.io/visual-git-guide/index-en.html

Reference:

  • Ruby
    • Jekyll
    • Bonsai 一个非常简单(但实用)的小脚本
    • Webgen 一个较复杂的生成器
  • Python
    • Hyde Jekyll的Python语言实现版本
    • Cyrax 使用Jinja2模板引擎的生成器
  • PHP
    • Phrozn PHP语言实现的静态网站生成器

My Test Table

Default aligned Left aligned Center aligned Right aligned
First body part Second cell Third cell fourth cell
Second line foo strong baz
Third line quux baz bar

My Math Test

Comments