Skip to content

ZeusWPI/zeus.ugent.be

This branch is 1 commit ahead of, 221 commits behind master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a2b9436 · Nov 7, 2023
Jan 5, 2021
May 10, 2023
Aug 12, 2020
Nov 7, 2023
Nov 7, 2023
Apr 15, 2022
Nov 7, 2023
Apr 12, 2023
Nov 17, 2020
Feb 2, 2020
Jan 5, 2021
Oct 10, 2021
May 22, 2017
Jan 5, 2021
Aug 5, 2021
Sep 19, 2023
Sep 19, 2023
Jun 14, 2017
Mar 22, 2018
Nov 7, 2023
Feb 10, 2023
Oct 21, 2021
Feb 15, 2022
Aug 7, 2023
Mar 18, 2021
Feb 15, 2022
Oct 22, 2021
Mar 18, 2021

Repository files navigation

zeus.ugent.be

Build Status Code Climate PageSpeed PageSpeed

This repository contains the source code for zeus.ugent.be, the website of Zeus WPI, the official student association of Informatics at Ghent University. The site is developed using nanoc, which is actively developed by ex-Zeus member ddfreyne. The CSS framework used is Bulma. We primarily focus on using markdown for blogposts and events. Feel free to make a Pull Request with a blog post if you feel inspired and need an outlet!

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You will need Ruby (gem), yarn and pandoc (optional). Installation instructions are listed below.

Installing

If bundler is not yet installed on your system, make sure to install it using the following command:

gem install bundler

In the root directory of the project, execute following commands

bundle install
yarn install

You will (momentarily) also need pandoc and latex to compile the reports from the board meetings. Refer to your OS package manager to install these things.

These will pull in all Ruby and Node.js dependencies. If everything goes well, you should be able to execute the following.

bundle exec nanoc live

Go to http://localhost:3000 to view the site! When developing, the site gets regenerated when editing files. A simple refresh will show the new changes.

Optional: install submodules

Our official meeting reports are added as a submodule so they update automatically. For normal development, it is not required to initialize these. But if you want to deploy to production (or test the report generation), you will have to initialize the submodule.

git submodule update --init --recursive

Deploying

The latest and greatest builds on master get deployed automatically using travis.

For manual deployment, run

# Build the site for production
bundle exec nanoc --env=prod

# Run checks
bundle exec nanoc --env=prod check --deploy

# Deploy it to the server
bundle exec nanoc deploy --target public --env=prod

If you want to deploy this on your own system for whatever reason, just serve the files using a webserver like nginx or Apache.

Uploading media files

Before using mediafiles on the site, upload them via https://zeus.ugent.be/zeuswpi/, our own custom uploading service. You'll receive the server-filename which is available at the aforementioned url. The file must be less than 1MB!

To upload remove the . in action="./zeuswpi" in following code so it looks like this:

form id="upload" class="form" method="post" enctype="multipart/form-data" action="/zeuswpi" style="display: none;">
    <label class="file-upload">

Submitting a Pull Request

Once you've submitted a PR, it will automatically be deployed to (PR#).pr.zeus.gent, for easier reviewing.

Analytics

Analytics are powered by Fathom and are available on https://stats.zeus.gent. These are only available to administrators with proper rights. These analytics are self hosted and provide only simple statistics for our information, without breaching your privacy.

Built With

  • nanoc, static site generator
  • Bulma, CSS framework

Authors

See the list of contributors who participated in this project.