This is the repository of ElasticMining website.
If you want to make some conbribution, you can
- Fix the typos, missed translations, or suggest in the issues
- Fix the HTML or CSS errors
- Write articles
If you are not familar to Git, please read this basic git tutorial. I highly recommend everyone should read this, because its fun and infomative.
- fork this repository
- clone the forked repository to your local machine
cd /path/to/repo
andgit branch develop
to create a new branch for further modificationgit checkout develop
to switch the branch you just createdgit remote add upstream https://github.com/ElasticMining/elasticmining.github.io.git
to add this repository as a remote upstream ropositorygit fetch upstream
to update from the upstream repogit merge upstream/master
to merge remote updates to the local repo- The steps above are for initialize your local git repo
Every time before you make any change, repeat step 6 and 7 to sync the master with newest version on remote repo, and then make branch to modify.
Make sure you still in the branch develop
- Copy the template
0000-00-00-template.md
from_drafts
to_posts
and rename the file name as your will - Edit the post description in the header
- Finish the markdown article
git add .
to stage the change you madegit commit -m "leave some comment"
to coomit the changegit pull upstream master
to sync this repogit push origin develop:master
to update the local develop branch to your forked repo- Okay, now you can issue a pull request
Just do all modification you need, and sync to your forked repo. Pull Request will update all the changes you made automatically.
A post header is comprised as follows
---
layout: post
title: Genesis
categories: template
description: "This is for testing"
comments: true
tags: [love, coding, machine learning]
image:
feature:
credit:
creditlink:
date: 0000-01-01T00:00:00+00:00
author: mayyang
---
# This is markdown section
The hightlighted header option needs you to customize
- layout: layout of this post, remain as it is
- title: title of this post
- categories: the category this post should belong
- comments: true or false. Does this post allow visitors to leave comments?
- tags: the tags this post should have
- image: the featured image shown in the head. You can leave it blank
- date: date
- author: the author id you are assigned, which is listed as follows
- description: the abstract of this post
Please use these IDs for the author info in post header
May Yang: mayyang
Erica Li: ericali
Brayn Yang: bryanyang
Mark Yang: markyang
Chu-Yu Hsu: chuyuhsu
Ryan Chao: ryanchao
Larry Lo: larrylo
Wei-Ching Lin: superching
First of all, you have to setup the jekyll environment Here is a step-by-step go-through.
- Install rvm
- Install ruby 2.2
gem install jekyll
gem install jekyll-paginate
gem install pygments.rb
gem install kramdown
Okay, if you still no clue what's going go. Please refer to here
Now, you already have set the jekyll environment, You can start a jekyll server to view the change you made.
cd /path/to/repo
jekyll serve
- open your browser and go to "http://127.0.0.1:4000"