Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.67 KB

README.md

File metadata and controls

73 lines (52 loc) · 1.67 KB

homepage Upload

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

Contributing

See Contributing for detailled explanation how to

  • write new posts
  • add static pages
  • edit the navigation
  • minified markdown intro
  • other crazy things

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).