/veax.github.io

My blog with my works and some web-pages created by myself or learned from lessons

Primary LanguageHTML

How to build project

  1. Clone this project on your machine
git clone https://github.com/veax/veax.github.io.git
  1. Follow jekyll instructions to install ruby and jekyll

  2. Go in project directory

cd veax.github.io
  1. Modify sources according to your needs

  2. Remove all content from _site directory

rm -r _site/*
  1. Create gh-pages branch and clone your repo's gh-pages branch into the _site directory
git clone -b gh-pages `git config remote.origin.url` _site
  1. run your project in localhost to test
jekyll serve
  1. build jekyll sources in _site directory
jekyll build
  1. push your src branch changes on git
  2. push your gh-pages branch changes on git
cd _site
git add .
git commit -am 'Yeah. Built from subdir'
git push
  1. Configure you github repo settings to serve on web from gh-pages branch: Settings -> General -> Code and automation -> Pages -> Build and deployment -> Source : deploy from branch -> branch gh-pages : root -> save