Skip to content

Commit b97bd32

Browse files
committed
Merge pull request #243 from nodejs/gh-142
Moved events into its own page
2 parents 2146d12 + f846333 commit b97bd32

File tree

6 files changed

+93
-20
lines changed

6 files changed

+93
-20
lines changed

CONTRIBUTING.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ By making a contribution to this project, I certify that:
9898
* (c) The contribution was provided directly to me by some other
9999
person who certified (a), (b) or (c) and I have not modified it.
100100

101-
102101
## Code of Conduct
103102

104103
This Code of Conduct is adapted from [Rust's wonderful
@@ -135,3 +134,48 @@ CoC](https://github.com/rust-lang/rust/wiki/Note-development-policy#conduct).
135134
* Avoid the use of personal pronouns in code comments or
136135
documentation. There is no need to address persons when explaining
137136
code (e.g. "When the developer")
137+
138+
## Code editing
139+
140+
### Adding new pages
141+
142+
1. Create new page content including the layout, title and copy.
143+
2. Update ```/locale/en/site.json``` to provide page link attributes.
144+
3. Update the relevant ```/layout``` to add a link to the new page.
145+
146+
#### Create the page content
147+
148+
Create a new markdown file in ```/local/en```. As specified in the
149+
[README.md](./README.md#layout), initial development happens in English.
150+
151+
At the top of the markdown file, set a page the title and layout.
152+
153+
```
154+
---
155+
title: Events
156+
layout: contribute.hbs
157+
---
158+
159+
[Event copy goes here]
160+
```
161+
162+
#### Update locale site.json to add link attributes
163+
164+
Open ```local/en/site.json``` and find the appropriate page structure.
165+
Add a new object defining the link attributes.
166+
167+
```
168+
"event": {
169+
"link": "get-involved/events",
170+
"text": "Events"
171+
}
172+
```
173+
174+
#### Update the layout to add a link
175+
176+
Using the example layout, open ```/layouts/contribute.hbs``` and add your new
177+
link to the markup. It's essential to update the handlebars paths to site.json.
178+
179+
```
180+
{{site.locale}}/{{site.getinvolved.events.link}}
181+
```

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Note: You'll need io.js 2.x or newer as the build system uses some native ES2015
4040

4141
### Deployment
4242

43-
Full set up is in https://github.com/nodejs/build/tree/master/setup/www minus secrets and certificates. The webhook is setup on GitHub for this project and talks to a small Node server on the host which does the work. See the [github-webhook](https://github.com/rvagg/github-webhook) package for this.
43+
Full set up is in https://github.com/nodejs/build/tree/master/setup/www minus secrets and certificates. The webhook is setup on GitHub for this project and talks to a small Node server on the host which does the work. See the [github-webhook](https://github.com/rvagg/github-webhook) package for this.
4444

4545
## Governance and Current Members
4646

layouts/contribute.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<li{{#equals path site.getinvolved.development.link}} class="active"{{/equals}}>
2323
<a href="/{{site.locale}}/{{site.getinvolved.development.link}}/">{{site.getinvolved.development.text}}</a>
2424
</li>
25+
<li{{#equals path site.getinvolved.events.link}} class="active"{{/equals}}>
26+
<a href="/{{site.locale}}/{{site.getinvolved.events.link}}/">{{site.getinvolved.events.text}}</a>
27+
</li>
2528
</ul>
2629
</aside>
2730

locale/en/get-involved/events.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: Events
3+
layout: contribute.hbs
4+
---
5+
6+
# Node Events
7+
8+
The Node.js community is committed to bringing you events from around the world, currently spanning the US, Europe and Japan.
9+
10+
<hr>
11+
12+
## Global
13+
14+
### United States
15+
16+
- [Node.js Interactive](http://interactive.nodejs.org/) is a conference run by the Node.js Foundation.
17+
18+
- [NodeConf](http://www.nodeconf.com/) conferences are the main event in the United States.
19+
20+
- [Node Summit](http://nodesummit.com/) is a conference in San Francisco focusing on the adoption of Node in larger companies.
21+
22+
### Europe
23+
24+
- [NodeConf EU](http://nodeconfeu.com/) is a Node conference in Europe, organized by Cian Ó Maidín.
25+
26+
- An [Italian Node.js Conference](http://nodejsconf.it/) is held in Brescia.
27+
28+
- [NodeConf Barcelona](http://barcelona.nodeconfeu.com/) is a Node conference in Spain, organized by BarcelonaJS.
29+
30+
### Japan
31+
32+
- [NodeFest (東京Node学園祭)](http://nodefest.jp/) is organized by the [Node.js Japan user group](http://nodejs.jp).
33+
34+
<hr>
35+
36+
## Localized
37+
38+
- [JSConf](http://jsconf.com/) organizes the main JavaScript conferences.
39+
40+
- [NodeConf ONE-SHOT](http://oneshot.nodeconf.com/) are fork-able conferences for a local communities

locale/en/get-involved/index.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,6 @@ right place. Explore our community resources to find out how you can help:
1414

1515
<hr>
1616

17-
## Events
18-
19-
- [Node.js Interactive](http://interactive.nodejs.org/) is a conference run by the Node.js Foundation.
20-
21-
- [NodeConf](http://www.nodeconf.com/) conferences are a collection of world wide community run events.
22-
23-
- [NodeConf EU](http://nodeconfeu.com/) is a Node conference in Europe, organized by Cian Ó Maidín.
24-
25-
- [NodeFest (東京Node学園祭)](http://nodefest.jp/) is organized by the [Node.js Japan user group](http://nodejs.jp).
26-
27-
- An [Italian Node.js Conference](http://nodejsconf.it/) is held in Brescia.
28-
29-
- [NodeConf Barcelona](http://barcelona.nodeconfeu.com/) is a Node conference in Spain, organized by BarcelonaJS.
30-
31-
- [Node Summit](http://nodesummit.com/) is a conference in San Francisco focusing on the adoption of Node in larger companies.
32-
33-
- [JSConf](http://jsconf.com/) organizes the main JavaScript conferences.
34-
3517
## Discussion
3618

3719
- The [github issues list](https://github.com/nodejs/node/issues) the place for discussion of Node.js core features

locale/en/site.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@
109109
"code-and-learn": {
110110
"link": "get-involved/code-and-learn",
111111
"text": "Code + Learn"
112+
},
113+
"events": {
114+
"link": "get-involved/events",
115+
"text": "Events"
112116
}
113117
},
114118
"trademark" : { "link": "about/trademark", "text": "Trademark" },

0 commit comments

Comments
 (0)