Skip to content

Commit

Permalink
New folder for gdcr2018 + date
Browse files Browse the repository at this point in the history
  • Loading branch information
rradczewski committed Feb 26, 2018
1 parent 3a7dcd7 commit 11e31be
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 9 deletions.
10 changes: 4 additions & 6 deletions README.md
Expand Up @@ -5,9 +5,9 @@ This year, registering your event at coderetreat.org is easier than it has ever
1. Fork [the Coderetreat git repository](https://github.com/coderetreat/coderetreat.github.io), current status: [![Build Status](https://travis-ci.org/coderetreat/coderetreat.github.io.svg?branch=master)](https://travis-ci.org/coderetreat/coderetreat.github.io)


2. Create a new file called `$YOURCITY.json` in the `_data/events/` of the repository.
2. Create a new file called `$YOURCITY.json` in the `_data/events_gdcr2018/` of the repository.
You can either:
* Generate a file automatically by using [this schema](https://github.com/coderetreat/coderetreat.github.io/blob/master/events/event_schema.json).
* Generate a file automatically by using [this schema](https://github.com/coderetreat/coderetreat.github.io/blob/master/events/event_schema.json).

* Generate a valid JSON below:
<script async src="//jsfiddle.net/wLahmdh4/5/embed/result/"></script>
Expand Down Expand Up @@ -47,15 +47,13 @@ This year, registering your event at coderetreat.org is easier than it has ever
```


4. Submit a pull request from Github. Be sure your PR title is clear.
4. Submit a pull request from Github. Be sure your PR title is clear.


5. Travis-CI will automatically verify that your JSON file is valid (it should show up [here](https://travis-ci.org/coderetreat/coderetreat.github.io/pull_requests) in the test output)
5. Travis-CI will automatically verify that your JSON file is valid (it should show up [here](https://travis-ci.org/coderetreat/coderetreat.github.io/pull_requests) in the test output)

*If you would like to to run the verification of the JSON file locally, then you must have NodeJS installed on your machine.*



6. The Coderetreat coordinators will then merge your request as soon as possible.


23 changes: 23 additions & 0 deletions _data/events_gdcr2018/TEMPLATE
@@ -0,0 +1,23 @@
{
"title": "GDCR17 Softwerkskammer Berlin",
"url": "https://www.eventbrite.com/e/global-day-of-coderetreat-2017-softwerkskammer-berlin-tickets-39627587180",
"moderators": [
"@alastairs",
"@martinklose",
"@mrksdck"
],
"sponsors": [
"@GoEuro",
"@Wikimedia"
],
"location": {
"city": "Berlin",
"country": "Germany",
"coordinates": {
"latitude": 52.5193449,
"longitude": 13.4003222
},
"utcOffset": 1,
"timezone": "Europe/Berlin"
}
}
2 changes: 1 addition & 1 deletion _includes/hero.html
@@ -1,7 +1,7 @@
<div id="hero">
<div class="header">
<h1><img src="/images/logo_400x400.jpg" height=40 alt="Coderetreat logo" style="border-radius: 50px;"> Global Day of Coderetreat</h1>
<h2>November 18, 2017</h2>
<h2>November 17, 2018</h2>
<p>a day to celebrate passion and software crafting</p>
<!--
<p class="calltoaction">
Expand Down
4 changes: 2 additions & 2 deletions test/validate_events.test.js
Expand Up @@ -34,7 +34,7 @@ const validate = input => {

describe('Events as given in /_data/events', () => {
describe('that are written in JSON: ', () => {
const jsonFiles = glob.sync(path.resolve(__dirname, '../_data/events/') + '/*.json');
const jsonFiles = glob.sync(path.resolve(__dirname, '../_data/events_gdcr2018/') + '/*.json');

jsonFiles.forEach(file =>
it(
Expand All @@ -45,7 +45,7 @@ describe('Events as given in /_data/events', () => {
});

describe('that are written in YAML: ', () => {
const ymlFiles = glob.sync(path.resolve(__dirname, '../_data/events/') + '/*.yml');
const ymlFiles = glob.sync(path.resolve(__dirname, '../_data/events_gdcr2018/') + '/*.yml');

ymlFiles.forEach(file =>
it(
Expand Down

0 comments on commit 11e31be

Please sign in to comment.