Github: Difference between revisions

From 太極
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
= Host web site =
= Host web site =
* [http://blog.teamtreehouse.com/using-github-pages-to-host-your-website Using GitHub Pages To Host Your Website] using a Custom Domain. The IP address information for Github is changed to [https://help.github.com/articles/my-custom-domain-isn-t-working/ new ones].
* [http://blog.teamtreehouse.com/using-github-pages-to-host-your-website Using GitHub Pages To Host Your Website] using a Custom Domain. The IP address information for Github is changed to [https://help.github.com/articles/my-custom-domain-isn-t-working/ new ones].
== Some Examples ==
* [http://blog.ankitaggarwal.me/PiScope/ PiScope]
* [http://arraytools.github.io/bdge/ BRB-DGE]


= [http://jekyllrb.com/ Jekyll] =
= [http://jekyllrb.com/ Jekyll] =

Revision as of 08:22, 10 July 2015

Host web site

Some Examples

Jekyll

Install Jekyll

on Ubuntu 14.04 I use (the second command will take a while to start),

sudo apt-get install ruby1.9.1-dev
sudo gem install jekyll

Example 1

cd /tmp
jekyll new MyNewSite
# It will create a new folder 'MyNewSite' with about.md, _config.yml, css (folder),  
#    _includes (folder), index.html, _layouts (folder), _posts (folder) and _sass (folder).
cd MyNewSite
jekyll serve --watch
# It'll say the Server Address: http://127.0.0.1:4000/
# We can open a browser to see a template of html page created by '''jekyll new''' command.