Skip to content

Commit 091bf30

Browse files
authored
Merge pull request #761 from adabay/source
Dependency Upgrade & New Theme Integration
2 parents 258253a + 5e765cb commit 091bf30

File tree

310 files changed

+7391
-1045
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

310 files changed

+7391
-1045
lines changed

.buildkite/build.pipeline.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
steps:
2+
- label: "Build & Push Staging Docker Image"
3+
commands:
4+
- echo $$REGISTRY_PASSWORD | docker login adabay.azurecr.io --username $$REGISTRY_USERNAME --password-stdin
5+
- docker run --rm -v "$$PWD":/usr/src/app -w /usr/src/app ruby:3.2.2 bash -c "bundle config set --local path '/usr/src/app/vendor' && bundle install"
6+
- docker run --rm -v "$$PWD":/usr/src/app -w /usr/src/app ruby:3.2.2 bash -c "bundle config set --local path '/usr/src/app/vendor' && bundle exec jekyll build"
7+
- docker build --pull --progress plain -f Staging.Dockerfile -t adabay.azurecr.io/fz-juelich/website/parallel-in-time:latest .
8+
- docker push adabay.azurecr.io/fz-juelich/website/parallel-in-time:latest
9+
- docker logout adabay.azurecr.io
10+
plugins:
11+
- adabay/vault-key-value#v0.9.5:
12+
secrets:
13+
- secret_path: "static/ci/username-password-combinations/adabay.azurecr.io"
14+
secret_key: "username"
15+
exported_env_variable_name: "REGISTRY_USERNAME"
16+
- secret_path: "static/ci/username-password-combinations/adabay.azurecr.io"
17+
secret_key: "password"
18+
exported_env_variable_name: "REGISTRY_PASSWORD"

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: 💎 setup ruby
1919
uses: ruby/setup-ruby@v1
2020
with:
21-
ruby-version: 2.4.1 # can change this to 2.7 or whatever version you prefer
21+
ruby-version: 3.2.2
2222
bundler-cache: true
2323

2424
- name: 🔨 install dependencies & build site

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,4 @@ Temporary Items
7979

8080
### IDEs ###
8181
.idea/
82+
.vscode/

Gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source 'https://rubygems.org/'
2-
ruby '2.4.1'
2+
ruby '3.2.2'
33

44
# other dependencies
55
gem 'sass'
@@ -8,16 +8,16 @@ gem 'coffee-script'
88
gem 'autoprefixer-rails'
99
gem 'mini_magick'
1010

11-
gem 'jekyll', '>=3.0'
11+
gem 'jekyll', '>=4.2'
1212

1313
# Jekyll Plugins
1414
gem 'jekyll-watch'
1515
gem 'jekyll-paginate'
1616
gem 'jekyll-feed'
17-
gem 'jekyll-assets'
1817
gem 'jekyll-sitemap'
1918
gem 'jekyll-scholar'
19+
gem 'liquid-tag-parser'
20+
gem 'bulma-clean-theme'
2021
# gem 'jekyll-archives'
2122

2223
gem 'jgd'
23-
gem 'therubyracer'

Gemfile.lock

Lines changed: 87 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,134 +1,147 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.1)
4+
addressable (2.8.5)
55
public_suffix (>= 2.0.2, < 6.0)
6-
autoprefixer-rails (8.6.3)
7-
execjs
8-
bibtex-ruby (4.4.7)
6+
autoprefixer-rails (10.4.13.0)
7+
execjs (~> 2)
8+
bibtex-ruby (6.0.0)
99
latex-decode (~> 0.0)
10-
citeproc (1.0.9)
10+
bulma-clean-theme (0.13.3)
11+
jekyll (>= 3.9, < 5.0)
12+
jekyll-feed (~> 0.15)
13+
jekyll-paginate (~> 1.1)
14+
jekyll-seo-tag (~> 2.7)
15+
jekyll-sitemap (~> 1.4)
16+
kramdown-parser-gfm (~> 1.1)
17+
citeproc (1.0.10)
1118
namae (~> 1.0)
12-
citeproc-ruby (1.1.10)
19+
citeproc-ruby (1.1.14)
1320
citeproc (~> 1.0, >= 1.0.9)
14-
csl (~> 1.5)
21+
csl (~> 1.6)
1522
coffee-script (2.4.1)
1623
coffee-script-source
1724
execjs
18-
coffee-script-source (1.10.0)
25+
coffee-script-source (1.12.2)
1926
colorator (1.1.0)
20-
concurrent-ruby (1.1.5)
21-
csl (1.5.0)
27+
concurrent-ruby (1.2.2)
28+
csl (1.6.0)
2229
namae (~> 1.0)
23-
csl-styles (1.0.1.8)
30+
rexml
31+
csl-styles (1.0.1.11)
2432
csl (~> 1.0)
25-
em-websocket (0.5.1)
33+
em-websocket (0.5.3)
2634
eventmachine (>= 0.12.9)
27-
http_parser.rb (~> 0.6.0)
35+
http_parser.rb (~> 0)
2836
eventmachine (1.2.7)
29-
execjs (2.7.0)
37+
execjs (2.8.1)
3038
extras (0.3.0)
3139
forwardable-extended (~> 2.5)
32-
fastimage (2.1.3)
33-
ffi (1.11.1)
40+
ffi (1.15.5)
3441
forwardable-extended (2.6.0)
35-
http_parser.rb (0.6.0)
36-
i18n (0.9.5)
42+
google-protobuf (3.24.0-aarch64-linux)
43+
google-protobuf (3.24.0-x86_64-linux)
44+
http_parser.rb (0.8.0)
45+
i18n (1.14.1)
3746
concurrent-ruby (~> 1.0)
38-
jekyll (3.8.4)
47+
jekyll (4.3.2)
3948
addressable (~> 2.4)
4049
colorator (~> 1.0)
4150
em-websocket (~> 0.5)
42-
i18n (~> 0.7)
43-
jekyll-sass-converter (~> 1.0)
51+
i18n (~> 1.0)
52+
jekyll-sass-converter (>= 2.0, < 4.0)
4453
jekyll-watch (~> 2.0)
45-
kramdown (~> 1.14)
54+
kramdown (~> 2.3, >= 2.3.1)
55+
kramdown-parser-gfm (~> 1.0)
4656
liquid (~> 4.0)
47-
mercenary (~> 0.3.3)
57+
mercenary (>= 0.3.6, < 0.5)
4858
pathutil (~> 0.9)
49-
rouge (>= 1.7, < 4)
59+
rouge (>= 3.0, < 5.0)
5060
safe_yaml (~> 1.0)
51-
jekyll-assets (2.4.0)
52-
concurrent-ruby (~> 1.0)
53-
extras (~> 0.2)
54-
fastimage (~> 2.0, >= 1.8)
55-
jekyll (~> 3.1, >= 3.0)
56-
pathutil (>= 0.8)
57-
rack (~> 1.6)
58-
sprockets (~> 3.3, < 3.8)
59-
jekyll-feed (0.4.0)
61+
terminal-table (>= 1.8, < 4.0)
62+
webrick (~> 1.7)
63+
jekyll-feed (0.17.0)
64+
jekyll (>= 3.7, < 5.0)
6065
jekyll-paginate (1.1.0)
61-
jekyll-sass-converter (1.5.2)
62-
sass (~> 3.4)
63-
jekyll-scholar (5.13.0)
64-
bibtex-ruby (~> 4.0, >= 4.0.13)
66+
jekyll-sass-converter (3.0.0)
67+
sass-embedded (~> 1.54)
68+
jekyll-scholar (7.1.3)
69+
bibtex-ruby (~> 6.0)
6570
citeproc-ruby (~> 1.0)
6671
csl-styles (~> 1.0)
67-
jekyll (~> 3.0)
68-
jekyll-sitemap (0.10.0)
69-
jekyll-watch (2.0.0)
72+
jekyll (~> 4.0)
73+
jekyll-seo-tag (2.8.0)
74+
jekyll (>= 3.8, < 5.0)
75+
jekyll-sitemap (1.4.0)
76+
jekyll (>= 3.7, < 5.0)
77+
jekyll-watch (2.2.1)
7078
listen (~> 3.0)
71-
jgd (1.7.1)
79+
jgd (1.13.0)
7280
jekyll (>= 1.5.1)
73-
trollop (= 2.1.2)
74-
json (2.3.1)
75-
kramdown (1.17.0)
76-
latex-decode (0.3.1)
77-
libv8 (3.16.14.19)
78-
liquid (4.0.3)
79-
listen (3.2.0)
81+
trollop (= 2.9.9)
82+
kramdown (2.4.0)
83+
rexml
84+
kramdown-parser-gfm (1.1.0)
85+
kramdown (~> 2.0)
86+
latex-decode (0.4.0)
87+
liquid (4.0.4)
88+
liquid-tag-parser (2.0.2)
89+
extras (~> 0.3)
90+
liquid (>= 3.0, < 5.0)
91+
listen (3.8.0)
8092
rb-fsevent (~> 0.10, >= 0.10.3)
8193
rb-inotify (~> 0.9, >= 0.9.10)
82-
mercenary (0.3.6)
83-
mini_magick (4.9.4)
84-
namae (1.0.1)
94+
mercenary (0.4.0)
95+
mini_magick (4.12.0)
96+
namae (1.1.1)
8597
pathutil (0.16.2)
8698
forwardable-extended (~> 2.6)
87-
public_suffix (4.0.7)
88-
rack (1.6.12)
89-
rb-fsevent (0.10.3)
90-
rb-inotify (0.10.0)
99+
public_suffix (5.0.3)
100+
rb-fsevent (0.11.2)
101+
rb-inotify (0.10.1)
91102
ffi (~> 1.0)
92-
ref (2.0.0)
93-
rouge (3.12.0)
103+
rexml (3.2.6)
104+
rouge (4.1.3)
94105
safe_yaml (1.0.5)
95-
sass (3.5.6)
106+
sass (3.7.4)
96107
sass-listen (~> 4.0.0)
108+
sass-embedded (1.64.2-aarch64-linux-gnu)
109+
google-protobuf (~> 3.23)
110+
sass-embedded (1.64.2-x86_64-linux-gnu)
111+
google-protobuf (~> 3.23)
97112
sass-listen (4.0.0)
98113
rb-fsevent (~> 0.9, >= 0.9.4)
99114
rb-inotify (~> 0.9, >= 0.9.7)
100-
sprockets (3.7.2)
101-
concurrent-ruby (~> 1.0)
102-
rack (> 1, < 3)
103-
therubyracer (0.12.3)
104-
libv8 (~> 3.16.14.15)
105-
ref
106-
trollop (2.1.2)
107-
uglifier (2.7.2)
108-
execjs (>= 0.3.0)
109-
json (>= 1.8.0)
115+
terminal-table (3.0.2)
116+
unicode-display_width (>= 1.1.1, < 3)
117+
trollop (2.9.9)
118+
uglifier (4.2.0)
119+
execjs (>= 0.3.0, < 3)
120+
unicode-display_width (2.4.2)
121+
webrick (1.8.1)
110122

111123
PLATFORMS
112-
ruby
124+
aarch64-linux
125+
x86_64-linux
113126

114127
DEPENDENCIES
115128
autoprefixer-rails
129+
bulma-clean-theme
116130
coffee-script
117-
jekyll (>= 3.0)
118-
jekyll-assets
131+
jekyll (>= 4.2)
119132
jekyll-feed
120133
jekyll-paginate
121134
jekyll-scholar
122135
jekyll-sitemap
123136
jekyll-watch
124137
jgd
138+
liquid-tag-parser
125139
mini_magick
126140
sass
127-
therubyracer
128141
uglifier
129142

130143
RUBY VERSION
131-
ruby 2.4.1p111
144+
ruby 3.2.2p53
132145

133146
BUNDLED WITH
134-
1.16.6
147+
2.4.10

README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# How to setup the project for local development
2+
3+
## I. Requirements
4+
5+
- You need docker installed on your computer
6+
- Link to [Docker Engine](https://docs.docker.com/engine/install/)
7+
- Link to [Docker Desktop (optional)](https://docs.docker.com/get-docker/)
8+
9+
## II. Run the local development
10+
11+
### Install all dependencies
12+
13+
We use **docker** to *prevent version* and *system differences*. So please, especially if you are a mac user, use the docker container.
14+
15+
#### Run this in your console to update your dependencies
16+
17+
```bash
18+
docker-compose -f docker-compose-bundle.yml up
19+
```
20+
21+
### Start the live preview of the page
22+
23+
**Note:** The **live reload** of jekyll is not perfect. Therefore, **don't expect** it to work as intended. Sometimes, you need to <u>re-run the command</u> in order to see the **newest changes**.
24+
25+
#### Run this in your console to start the local preview
26+
27+
```bash
28+
docker-compose up
29+
```
30+
31+
## III. Troubleshooting
32+
33+
If the live preview fails and you don't know the cause, follow these steps:
34+
35+
1. You installed the dependencies in the past
36+
37+
Chances are that the dependencies are not compatible if you once installed the dependencies a long time ago.
38+
39+
Steps to fix it:
40+
- delete `vendor` folder
41+
- delete `Gemfile.lock` folder
42+
- re-install dependencies
43+
44+
2. Your ports are already used by an other program
45+
46+
If you are running another program that requires either **port 4000** or **port 35729**, the preview will fail.
47+
48+
Steps to fix it:
49+
- either close the program(s) that need(s) the port(s)
50+
- or specify another port
51+
52+
If you want to specify another port go to the docker compose file, append one of the args to the bash script that the docker container will run:
53+
54+
- `--port [YOUR PORT]` (the port where the page is accessible at)
55+
- `--livereload-port [YOUR PORT]` (the port where the live reload script is accessible at)
56+
57+
&rarr; append the arg(s) to the bash command:
58+
59+
```bash
60+
... && bundle exec jekyll serve --livereload --host=0.0.0.0 --port=[PORT] --livereload-port=[PORT]
61+
```
62+
63+
3. You decided not to run it in the docker container
64+
65+
If you did, then please run it in the container.
66+
67+
4. Other causes
68+
69+
If you tried every troubleshooting method and none of them worked: We are sorry, but you need to find the error by your own.

Staging.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM httpd:2.4
2+
3+
COPY --chown=www-data:www-data _site /usr/local/apache2/htdocs/

0 commit comments

Comments
 (0)