Commit 7687be70 authored by Ivar Derksen's avatar Ivar Derksen
Browse files

Make nl pages build in a separate directory

parent d1306c6b
Pipeline #46507 passed with stage
in 23 seconds
...@@ -19,4 +19,4 @@ site: ...@@ -19,4 +19,4 @@ site:
paths: paths:
- _site/* - _site/*
script: script:
- bundle exec jekyll build --config _config.yml - bundle exec jekyll build --config _config_production.yml
...@@ -18,7 +18,7 @@ gem "jekyll", "~> 3.6.0" ...@@ -18,7 +18,7 @@ gem "jekyll", "~> 3.6.0"
group :jekyll_plugins do group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6" gem "jekyll-feed", "~> 0.6"
gem "jekyll-menus", "0.6" gem "jekyll-menus", "0.6"
gem 'jekyll-multiple-languages-plugin' gem "jekyll-multiple-languages-plugin", "~> 1.7.0"
end end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
......
...@@ -21,8 +21,8 @@ GEM ...@@ -21,8 +21,8 @@ GEM
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-menus (0.6.0) jekyll-menus (0.6.0)
jekyll (~> 3.1) jekyll (~> 3.1)
jekyll-multiple-languages-plugin (1.6.0) jekyll-multiple-languages-plugin (1.7.0)
jekyll (>= 2.0, < 4.0) jekyll (>= 2.0, < 5.0)
jekyll-sass-converter (1.5.2) jekyll-sass-converter (1.5.2)
sass (~> 3.4) sass (~> 3.4)
jekyll-watch (1.5.1) jekyll-watch (1.5.1)
...@@ -54,5 +54,8 @@ DEPENDENCIES ...@@ -54,5 +54,8 @@ DEPENDENCIES
jekyll (~> 3.6.0) jekyll (~> 3.6.0)
jekyll-feed (~> 0.6) jekyll-feed (~> 0.6)
jekyll-menus (= 0.6) jekyll-menus (= 0.6)
jekyll-multiple-languages-plugin jekyll-multiple-languages-plugin (~> 1.7.0)
tzinfo-data tzinfo-data
BUNDLED WITH
2.0.2
# irma-website # irma-website
Repository for the static website at irma.app Repository for the static website at irma.app
## Developing
For this project Ruby on Rails must be installed on your pc. You can
serve a development website in the following way:
```shell script
bundle install
bundle exec jekyll serve
```
To switch languages you have to update the url to for example `http://localhost:4000/en`.
The root directory will show the `nl` pages.
## Building for production
For a production build we need the dutch language files to be in a separate directory
(just like the other languages). This is configured for you in the `_config_production.yml`.
This means building for production works as follows:
```shell script
bundle install
bundle exec jekyll build --config _config_production.yml
```
Now the build files can be found in the `_site` directory.
--- ---
title: IRMA title: IRMA (Development version)
author: Privacy by Design Foundation author: Privacy by Design Foundation
email: '' email: ''
description: Met IRMA heb je in de hand wat er met jouw gegevens gebeurt. description: Met IRMA heb je in de hand wat er met jouw gegevens gebeurt.
...@@ -7,12 +7,12 @@ baseurl: "" ...@@ -7,12 +7,12 @@ baseurl: ""
url: '' url: ''
languages: ["nl", "fr", "en", "de"] languages: ["nl", "fr", "en", "de"]
defaults: defaults:
- scope: - scope:
path: '' path: ''
values: values:
layout: default layout: default
markdown: kramdown markdown: kramdown
plugins: plugins:
- jekyll-feed - jekyll-feed
- jekyll-menus - jekyll-menus
- jekyll-multiple-languages-plugin - jekyll-multiple-languages-plugin
# Development server config
# This config is only used for the development server
# No settings provided here will affect production builds
url: http://localhost:3000
host: localhost
port: 3000
\ No newline at end of file
---
title: IRMA
author: Privacy by Design Foundation
email: ''
description: Met IRMA heb je in de hand wat er met jouw gegevens gebeurt.
baseurl: ""
url: ''
languages: ["nl", "fr", "en", "de"]
default_locale_in_subfolder: true
defaults:
- scope:
path: ''
values:
layout: default
markdown: kramdown
plugins:
- jekyll-feed
- jekyll-menus
- jekyll-multiple-languages-plugin
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment