Giter VIP home page Giter VIP logo

withr.github.io's Introduction

layout title date comments categories
post
Setup website of your Github account with Jekyll
2016-01-14 13:32
true
Git

I have to write this blog because it always needs half day to get everything work. Note: always download 64-bit version softwares, if you use 64-bit computer.

Install git.

Download Git and install it. Run Git Bash, and set up the user name and email address, like:

git config --global user.name "John Doe"
git config --global user.email [email protected]

Generate SSK key (id_rsa.pub) and add its content to your Github repository. You can use command pwd to find where the id_rsa.pub generated.

cd ~/.ssh
ssh-keygen

Fork Jekyll to your Github account.

Log onto your Github account, and find the Jekyll repository. Fork it to your account, and rename the repository to: yourgithubusername.github.io

Install Ruby

Download 64-bit version of Ruby, e.g. Ruby 2.2.3(x64), and install it. Remember toggle the option: Add Ruby executables to your PATH

Install DevKit

Download 64-bit version of DevKit and unzip it to somewhere. Note: there must have no space in its directory. Go to the unzipped directory, then bind DevKit to Ruby using the following commands:

ruby dk.rb init
ruby dk.rb install

Install Python 2.7

Install Python 2.7 and add its bin directory to system environment variable PATH.

Clone Jekyll forked to local machine.

git clone [email protected]:yourusername/yourusername.github.io.git

Install Jekyll

gem install github-pages

Navigate to the cloned folder, and run command:

jekyll serve

If everything is OK, you can view your website at: http://0.0.0.0:4000

Normal operation

You can always git pull from the repository on Github if you change the repository on Github. If you prefer edit your website locally, remember the following commands for pushing change to website:

git add -A
git commit -m “some message”
git push

withr.github.io's People

Contributors

barryclark avatar huidongtian avatar tianhuidong avatar withr avatar javiercejudo avatar peteretelej avatar bkiers avatar esteinborn avatar vermluh avatar henryaj avatar hunjaelee avatar rnicholus avatar

Stargazers

Miguel Xochicale, PhD avatar

Watchers

 avatar

Forkers

huidongtian

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.