pep-dortmund / homepage

Our new homepage
https://pep-dortmund.org
MIT License
7 stars 4 forks source link

homepage Upload

Repository of the PeP al. homepage (https://pep-dortmund.org).

Contributing

See Contributing for detailled explanation how to

Local Testing

It is advisable, that you test the website locally if you make any changes or review Pull Requests

Install the required software

Ubuntu

$ sudo apt install ruby-dev nodejs libxml2-dev libxslt-dev build-essential
$ gem install --user bundler

And add this to your ~/.bashrc ~/.zshrc ~/.profile/...:

export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
export PATH="$PATH:$GEM_HOME/bin"

ArchLinux

$ sudo pacman -S ruby nodejs libxml2 libxslt
$ gem install --user bundler

And add this to your ~/.bashrc ~/.zshrc ~/.profile/...:

export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
export PATH="$PATH:$GEM_HOME/bin"

macOS

$ brew install ruby node
$ gem install bundler

Testing

Go to the base directory of this repository.

First install all required gems

$ bundle config set --local path 'vendor/bundle'
$ bundle install

In order to test the site at this point, simply run

$ bundle exec jekyll serve

The website is then served at localhost:4000. Changes to the inputfiles are recognised and the website is build again, press f5 in the browser to update.

Some updates, like changing images might require to delete the cache (ctrl + r in chrome).