Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.03 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.03 KB

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