HTML CSS Ruby JavaScript
Switch branches/tags
Nothing to show
Clone or download
RonaldDijkstra Improve pagination (#1235)
* Add disabled steps

* Add current page / total num_pages

* Add styling and refactor a bit
Latest commit 306f13b Jul 13, 2018

README.md

Defacto websites

The source code for our websites:

https://www.defacto.nl
https://www.defactolearning.de
https://en.defacto.nl

More detailed information can be found at the Wiki.

Dependencies
  • Ruby 2.3.3 (install with rbenv)
  • Bundler

To install other dependencies run bundle install from the root of the project.

Server

Start Middleman server and browse to http://localhost:4567:

rake serve:nl
rake serve:de
rake serve:en
Build
rake build:nl
rake build:de
rake build:en
Test (and build before)
rake test:nl
rake test:de
rake test:en
rake test # Test all locales with HTML-proofer
Stage (and build before)

We can stage a version of the website in one locale:

rake deploy_staging:nl
rake deploy_staging:de
rake deploy_staging:en

Staging is deployed to website-staging/tree/gh-pages

Deploy (and build before)
rake deploy:nl
rake deploy:de
rake deploy:en
rake deploy # Deploy all locales

:nl is deployed to website/tree/gh-pages.
:de is deployed to website-de/tree/gh-pages.
:en is deployed to website-en/tree/gh-pages.

Useful links for debugging
Thanks to