zeus.ugent.be/README.md

80 lines
1.3 KiB
Markdown
Raw Normal View History

2016-06-09 13:04:10 +00:00
# zeus.ugent.be
2016-07-18 11:56:23 +00:00
[![Build Status](https://travis-ci.org/ZeusWPI/zeus.ugent.be.svg?branch=master)](https://travis-ci.org/ZeusWPI/zeus.ugent.be)
2016-06-09 13:04:10 +00:00
2016-08-23 18:21:02 +00:00
## Setup
### Installation
2016-06-09 13:04:10 +00:00
2016-06-10 10:22:59 +00:00
```bash
bundle install
2016-07-28 09:48:35 +00:00
npm install
2016-06-10 10:22:59 +00:00
```
2016-06-09 13:04:10 +00:00
2016-08-23 18:21:02 +00:00
### Developing
2016-06-09 13:04:10 +00:00
```bash
2016-08-21 16:03:53 +00:00
bundle exec nanoc live
2016-06-09 13:04:10 +00:00
```
2016-08-21 16:03:53 +00:00
This will spawn a webserver, and automatically recompile the site
when files get changed.
2016-06-09 18:20:22 +00:00
2016-08-23 18:21:02 +00:00
### Deploying
2016-06-09 18:20:22 +00:00
2016-07-19 11:43:32 +00:00
The latest builds on master get deployed automatically using [travis](https://travis-ci.org).
For manual deployment, run
2016-06-09 18:20:22 +00:00
```bash
bundle exec nanoc deploy --target public
```
2016-08-23 18:21:02 +00:00
## Events
Example structure:
```
content/
assets/
events/
15-16/
16-17/
battlebots/
main.md
intro.md
codenight.md
finale.md
awk.md
sed.md
ruby.md
index.erb
```
### Metadata
Every event is a `.md` file with the following metadata tags:
#### Required
* title: String
* time: Date
* location: String
#### Optional
* banner: URL
### Grouped events
If there's a series of events (for example summer code nights) these can be grouped by creating a folder containing a `main.md`, which will need the following metadata:
#### Required
* title: String
#### Optional
* location: String
* banner: URL
Other `.md` files made in that folder are sub-events which need to fit the [metadata description listed earlier](#metadata)