GithubHelp home page GithubHelp logo

lutoma / rzl-homepage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raumzeitlabor/rzl-homepage

0.0 3.0 0.0 239.94 MB

a preliminary proposal for our new homepage

Home Page: http://new.raumzeitlabor.de

License: Other

JavaScript 86.12% CSS 13.15% Shell 0.73%

rzl-homepage's Introduction

rzl-homepage

Build Status DevDependency Updates

To try out the new version, visit the test installation (updated automatically with each commit, checked every minute).

This repository is rather large (about 200MB at the time of writing) because everything (including images) is included. The initial cloning therefore takes a few seconds (depending on your Internet connection).

Contributing

To contribute content or code please create a pull request, so that we can have a look at it and discuss your changes. We integrate with Travis CI so that we can easily see if your pull request breaks our build and thus cannot be merged.

When contributing blog posts you may of course automatically merge your pull request as soon as Travis approves, if you follow our guidelines:

  • Please provide a descriptive, short commit message. If more information is required, put it into the body of the commit message. We speak English in our commit messages.
  • Please use HTML on content pages sparingly. Blog posts should always be written in Markdown if no special HTML content is required.
  • Please set your editor to break after 85 characters and use spaces instead of tabs.

We will provide templates for creating blog posts. You will be able to add blog posts consisting of text only on Github.

In case of questions, please talk to Else.

Setup

Docker

cd docker && docker build -t rzl-homepage .
docker run --privileged=true -p 127.0.0.1:8000:8000 -v $(pwd):/home/dev rzl-homepage grunt serve

Plain

Requirements

sudo apt-get install nodejs npm jekyll
sudo npm install -g grunt-cli bower

Dependencies

npm install
export PATH=$PATH:$(npm bin)
bower install

Hacking

grunt serve
vi app/$file

Building

grunt

Deploying

The quick and dirty solution is to add a post-merge git hook:

#!/bin/bash -l
set -e
time npm update \
    && bower update \
    && ./node_modules/grunt-cli/bin/grunt \
    && rsync -vrP --checksum --delete dist/ dist.current

Note that the process of copying the files into the destination directory is obviously not atomic. However, files are synced only if really necessary (based on checksum). Deploying atomatically is anyways not possible due to AJAX requests happening. Checking for new commits is done using crontab:

*/5 * * * * git pull origin master

A better solution would be to use Github web hooks. The effort of setting that up is way higher though.

rzl-homepage's People

Contributors

echox avatar elsbrock avatar lutoma avatar mschuetz avatar tabascoeye avatar thinkjd avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.