Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moved events into its own page due to the growing list #142

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 38 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ By making a contribution to this project, I certify that:
* (c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified it.


## Code of Conduct

This Code of Conduct is adapted from [Rust's wonderful
Expand Down Expand Up @@ -51,3 +50,41 @@ CoC](https://github.com/rust-lang/rust/wiki/Note-development-policy#conduct).
* Avoid the use of personal pronouns in code comments or
documentation. There is no need to address persons when explaining
code (e.g. "When the developer")

## Code editing

### Adding new pages
1. Create new page content including the layout, title and copy.
2. Update ```/locale/en/site.json``` to provide page link attributes.
3. Update the relevant ```/layout``` to add a link to the new page.

#### Create the page content
Create a new markdown file in ```/local/en```. As specified in the [README.md](./README.md#layout), initial development happens in English.

At the top of the markdown file, set a page the title and layout.

```
---
title: Events
layout: contribute.hbs
---

[Event copy goes here]
```

#### Update locale site.json to add link attributes
Open ```local/en/site.json``` and find the appropriate page structure. Add a new object defining the link attributes.

```
"event": {
"link": "get-involved/events",
"text": "Events"
}
```

#### Update the layout to add a link
Using the example layout, open ```/layouts/contribute.hbs``` and add your new link to the markup. It's essential to update the handlebars paths to site.json.

```
{{site.locale}}/{{site.getinvolved.events.link}}
```
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Note: You'll need io.js 2.x or newer as the build system uses some native ES2015
* The top of each Markdown file is a block of YAML for page specific localization information that is passed to various templates.
* The bulk of the Markdown content for each page is referenced as `{{{content}}}` in the corresponding template.

[Adding new pages](./CONTRIBUTING.md#adding-new-pages)

## Governance and Current Members

All of the Node.js Foundation websites, including this repo, are jointly governed by the **Website Working Group**. See [GOVERNANCE.md](./GOVERNANCE.md) to learn more about the group's structure and [CONTRIBUTING.md](./CONTRIBUTING.md) for guidance about the expectations for all contributors to this project.
Expand Down
3 changes: 3 additions & 0 deletions layouts/contribute.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<li{{#equals path site.getinvolved.development.link}} class="active"{{/equals}}>
<a href="/{{site.locale}}/{{site.getinvolved.development.link}}/">{{site.getinvolved.development.text}}</a>
</li>
<li{{#equals path site.getinvolved.events.link}} class="active"{{/equals}}>
<a href="/{{site.locale}}/{{site.getinvolved.events.link}}/">{{site.getinvolved.events.text}}</a>
</li>
</ul>
</aside>

Expand Down
36 changes: 36 additions & 0 deletions locale/en/get-involved/events.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: Events
layout: contribute.hbs
---

# Node Events

The Node.js community is committed to bringing you events from around the world, currently spanning the US, Europe and Japan.

<hr>

## Global

### United States

- [NodeConf](http://www.nodeconf.com/) conferences are the main event in the United States.

- [Node Summit](http://nodesummit.com/) is a conference in San Francisco focusing on the adoption of Node in larger companies.

### Europe

- [NodeConf EU](http://nodeconfeu.com/) is a Node conference in Europe, organized by Cian Ó Maidín.

- An [Italian Node.js Conference](http://nodejsconf.it/) is held in Brescia.

### Japan

- [NodeFest (東京Node学園祭)](http://nodefest.jp/) is organized by the [Node.js Japan user group](http://nodejs.jp).

<hr>

## Localized

- [JSConf](http://jsconf.com/) organizes the main JavaScript conferences.

- [NodeConf ONE-SHOT](http://oneshot.nodeconf.com/) are fork-able conferences for a local communities
17 changes: 0 additions & 17 deletions locale/en/get-involved/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,6 @@ right place. Explore our community resources to find out how you can help:

<hr>

## Events

- [NodeConf](http://www.nodeconf.com/) conferences are the main event in the United States.

- [NodeConf EU](http://nodeconfeu.com/) is a Node conference in Europe, organized by Cian Ó Maidín.

- [NodeFest (東京Node学園祭)](http://nodefest.jp/) is organized by the [Node.js Japan user group](http://nodejs.jp).

- An [Italian Node.js Conference](http://nodejsconf.it/) is held in Brescia.

- [Node Summit](http://nodesummit.com/) is a conference in San Francisco focusing on the adoption of Node in larger companies.

- [JSConf](http://jsconf.com/) organizes the main JavaScript conferences.

- [NodeConf ONE-SHOT](http://oneshot.nodeconf.com/) are forkable conferences for a local communities


## Discussion

- The [mailing list](http://groups.google.com/group/nodejs) is used for announcements and discussion about Node.
Expand Down
4 changes: 4 additions & 0 deletions locale/en/site.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@
"development": {
"link": "get-involved/development",
"text": "Development"
},
"events": {
"link": "get-involved/events",
"text": "Events"
}
},
"trademark" : { "link": "about/trademark", "text": "Trademark" },
Expand Down