1
1
![ es6rocks] ( https://raw.githubusercontent.com/es6rocks/es6rocks.github.io/master/images/es6rocks.png )
2
2
3
3
# How to contribute
4
- Contributing to ES6Rocks is easy, choose what type of contribution you want.
4
+ ES6Rocks.com is a collaborative website.
5
+ Anyone can contribute by writing an article, making a layout change, suggest new sections, reporting issues, etc.
6
+ Contributing to ES6Rocks is super easy, choose the type of contribution you want.
5
7
6
8
## Writing an article
7
9
ES6Rocks website is built with [ Harmonic] ( https://github.com/es6rocks/harmonic/ ) , our static site generator.
8
10
- First thing you need to do is to install Harmonic.
9
11
``` javascript
10
12
npm install harmonic - g
11
13
```
12
- You'll need node 0.11.* and npm already installed.
13
- Check out the main [ Harmonic documentation] ( https://github.com/es6rocks/harmonic/ ) if you're in trouble.
14
+ You'll need node 0.11.* and npm already installed.
15
+ Check out the main [ Harmonic documentation] ( https://github.com/es6rocks/harmonic/ ) if you're in trouble.
14
16
15
17
- Fork and clone the es6rocks.github.io repository
16
18
``` shell
@@ -26,38 +28,25 @@ git checkout src
26
28
``` shell
27
29
harmonic new_post " My awesome post"
28
30
```
29
- This command will create a new markdown file in ` /src/posts ` .
31
+ This command will create a new markdown file in ` /src/posts/[LANG] ` .
30
32
31
33
- Test
32
- Run Harmonic to check if your post is ok :
34
+ Run Harmonic to check if your post is ready :
33
35
``` shell
34
36
harmonic run
35
37
```
36
38
This command will build and run the ES6Rocks website in the default port 9356.
37
39
38
- - Copy the public folder to the master branch.
39
- The output of ` harmonic run ` is the ` /public ` folder.
40
- All you'll need to do is to copy the public folder to the master branch.
41
- ``` shell
42
- cp public/ -r /tmp/esrocks-website
43
- ```
44
40
- Commit your changes and checkout to the master branch
45
41
``` shell
46
42
git add .
47
- git commit -m " posts about promises"
48
- git checkout master
43
+ git commit -m " postsmy awesome article"
49
44
```
50
- - On the master branch, put all the contents from the previously copied public folder
51
- ``` shell
52
- cp /tmp/esrocks-website/* -r ./
53
- ```
54
- - Commit, push and open a pull-request for both master and src branches
55
- ``` shell
56
- git add .
57
- git commit -m " posts about promises"
58
- git push origin master
59
45
60
- git checkout src
46
+ - push and open a pull-request for the src branche
47
+ ``` shell
61
48
git push origin src
62
49
```
63
50
Go to your forked repository's page on Github.com and create a pull-request.
51
+
52
+ ## Issues
0 commit comments