1
1
# Node.js Collaborator Guide
2
2
3
- ** Contents**
4
-
5
3
* [ Issues and Pull Requests] ( #issues-and-pull-requests )
6
4
* [ Accepting Modifications] ( #accepting-modifications )
7
5
* [ Involving the Website Group] ( #involving-the-website-group )
@@ -61,7 +59,7 @@ from other Collaborators. Leave at least 48 hours during the week and
61
59
and work schedules. Trivial changes (e.g. those which fix minor bugs
62
60
or improve performance without affecting API or causing other
63
61
wide-reaching impact) may be landed after a shorter delay. Any press
64
- release can land with no time contstraints as long as the copy is
62
+ release can land with no time constraints as long as the copy is
65
63
properly formatted, it is not the responsibility of the website group
66
64
to review the copy itself.
67
65
@@ -135,7 +133,7 @@ CoC](https://github.com/rust-lang/rust/wiki/Note-development-policy#conduct).
135
133
* Please keep unstructured critique to a minimum. If you have solid
136
134
ideas you want to experiment with, make a fork and see how it works.
137
135
* We will exclude you from interaction if you insult, demean or harass
138
- anyone. That is not welcome behaviour . We interpret the term
136
+ anyone. That is not welcome behavior . We interpret the term
139
137
"harassment" as including the definition in the [ Citizen Code of
140
138
Conduct] ( http://citizencodeofconduct.org/ ) ; if you have any lack of
141
139
clarity about what might be included in that concept, please read
@@ -149,7 +147,7 @@ CoC](https://github.com/rust-lang/rust/wiki/Note-development-policy#conduct).
149
147
a newcomer, we care about making this community a safe place for you
150
148
and we've got your back.
151
149
* Likewise any spamming, trolling, flaming, baiting or other
152
- attention-stealing behaviour is not welcome.
150
+ attention-stealing behavior is not welcome.
153
151
* Avoid the use of personal pronouns in code comments or
154
152
documentation. There is no need to address persons when explaining
155
153
code (e.g. "When the developer")
@@ -159,17 +157,17 @@ CoC](https://github.com/rust-lang/rust/wiki/Note-development-policy#conduct).
159
157
### Adding new pages
160
158
161
159
1 . Create new page content including the layout, title and copy.
162
- 2 . Update ``` /locale/en/site.json `` ` to provide page link attributes.
163
- 3 . Update the relevant ``` /layout `` ` to add a link to the new page.
160
+ 2 . Update ` /locale/en/site.json ` to provide page link attributes.
161
+ 3 . Update the relevant ` /layout ` to add a link to the new page.
164
162
165
163
#### Create the page content
166
164
167
- Create a new markdown file in ``` /local/en `` ` . As specified in the
165
+ Create a new markdown file in ` /local/en ` . As specified in the
168
166
[ README.md] ( ./README.md#layout ) , initial development happens in English.
169
167
170
168
At the top of the markdown file, set a page the title and layout.
171
169
172
- ```
170
+ ``` markdown
173
171
---
174
172
title: Events
175
173
layout: contribute.hbs
@@ -180,10 +178,10 @@ layout: contribute.hbs
180
178
181
179
#### Update locale site.json to add link attributes
182
180
183
- Open ``` local/en/site.json `` ` and find the appropriate page structure.
181
+ Open ` local/en/site.json ` and find the appropriate page structure.
184
182
Add a new object defining the link attributes.
185
183
186
- ```
184
+ ``` json
187
185
"event" : {
188
186
"link" : " get-involved/events" ,
189
187
"text" : " Events"
@@ -192,10 +190,10 @@ Add a new object defining the link attributes.
192
190
193
191
#### Update the layout to add a link
194
192
195
- Using the example layout, open ``` /layouts/contribute.hbs `` ` and add your new
193
+ Using the example layout, open ` /layouts/contribute.hbs ` and add your new
196
194
link to the markup. It's essential to update the handlebars paths to site.json.
197
195
198
- ```
196
+ ``` handlebars
199
197
{{site.locale}}/{{site.getinvolved.events.link}}
200
198
```
201
199
0 commit comments