Compare commits
494 commits
Author | SHA1 | Date | |
---|---|---|---|
|
df48a863be | ||
|
eb3f70aa22 | ||
|
08847caa30 | ||
|
98c6911600 | ||
|
97617b0a1e | ||
|
646a69ecf3 | ||
|
054f35fd78 | ||
|
8d5f51cbcb | ||
|
e82b4ccf3c | ||
|
86c4a87874 | ||
|
f76411c574 | ||
|
2bab6eb659 | ||
|
2acbf8a5e2 | ||
|
00092656ba | ||
|
b333a0ed4e | ||
|
a8243e8156 | ||
|
744c623754 | ||
|
c6cb2848c8 | ||
|
eca892cf41 | ||
|
d5db88fd83 | ||
|
08a3460dcd | ||
|
8b4d8186f7 | ||
|
4e44b5ddb6 | ||
|
79723f3839 | ||
|
105441f8b7 | ||
|
f0bf7ac351 | ||
|
0d2ad10738 | ||
|
134d65a430 | ||
|
ca5a54056f | ||
|
18d164eb85 | ||
|
f7128c7a22 | ||
|
53a405039d | ||
|
f30f745d38 | ||
|
ce0b0e8a38 | ||
|
3c39054028 | ||
|
c31c11e46c | ||
|
90420e7a3d | ||
|
6a39b32588 | ||
|
0fc60ddc1d | ||
|
75c7edb4fb | ||
|
ac9b67fb71 | ||
|
12a90cc996 | ||
|
09d7bc3559 | ||
|
4ea2a7cdca | ||
|
e5c5023761 | ||
|
77d6d423e0 | ||
|
3559785257 | ||
|
02aae74ae4 | ||
|
980af43fd4 | ||
|
122bd40ae5 | ||
|
444d4f8289 | ||
|
5b2f1db42f | ||
|
12d51352b3 | ||
|
10105de582 | ||
|
c4a5c1e085 | ||
|
6e9babd521 | ||
|
9aa0014e54 | ||
|
1a7d77803b | ||
|
1aa935aa99 | ||
|
fd076e6950 | ||
|
05bd36b723 | ||
|
8486e93d8b | ||
|
afe54db565 | ||
|
d92ca7cf29 | ||
|
e31679ba64 | ||
|
6994c9499f | ||
|
bf6e6c7226 | ||
|
88ad123bc3 | ||
|
f537c9bd80 | ||
54e4ca1080 | |||
6351c8b05e | |||
481af58794 | |||
ea019a5c4e | |||
|
c6b32af484 | ||
|
ddba0e068d | ||
|
217113d05f | ||
|
15b7ddfdfd | ||
|
7b494636e6 | ||
|
d28d38e29f | ||
800b252788 | |||
3948eab4e9 | |||
5191c0d9f2 | |||
09a33275ff | |||
0c0d2098a7 | |||
1aeae57560 | |||
|
ac56bf1657 | ||
|
08961fa62a | ||
|
6d0d10fea0 | ||
|
be6e592168 | ||
|
6b1a9ee9a7 | ||
|
78c055636b | ||
|
570826d185 | ||
|
039b5935f9 | ||
|
205d1eb770 | ||
|
5084c38f47 | ||
|
8fa69270f8 | ||
|
bb57edc86d | ||
|
1f64907f9c | ||
|
bb1e2723e5 | ||
|
edfd9c02ac | ||
|
09ec6f507c | ||
|
9768df803f | ||
|
92a4c558fa | ||
|
5b959472cd | ||
|
ee7723c986 | ||
|
71f152c659 | ||
|
b2104b8f69 | ||
|
eae4f0721c | ||
|
8e5b5308ae | ||
|
aa724bdea5 | ||
|
76db2afbbc | ||
|
e8855c8de4 | ||
|
677af15b00 | ||
|
69a5ac0a99 | ||
|
f799899336 | ||
|
2fad3eadb2 | ||
|
8a8fd08131 | ||
|
71470900c4 | ||
|
c9a21e5cc4 | ||
|
a32a366b31 | ||
|
9c59b419e3 | ||
|
46ede6576b | ||
|
7d6f9666ac | ||
|
d921f7bed7 | ||
|
5efb861974 | ||
|
068ee28a95 | ||
|
3594cc4185 | ||
|
845f7bf5cb | ||
|
143ae883c0 | ||
|
06162abbc4 | ||
|
698f84eee4 | ||
|
d01d88e227 | ||
|
b0aafa6b6d | ||
|
37e70dc594 | ||
|
44e26e3658 | ||
|
9ce16b9f1c | ||
|
cf26e6b916 | ||
|
7fed70c5c7 | ||
|
99f6cbbfb7 | ||
|
e747ea1f8d | ||
|
e23cab60a3 | ||
|
254853fb42 | ||
|
222de441f1 | ||
|
83bb5a0b32 | ||
|
3214d7ec21 | ||
|
8060b7141b | ||
|
8298045680 | ||
|
1735da4a04 | ||
|
68920e58f2 | ||
|
f93b83a88d | ||
|
c87fd94000 | ||
|
176ef8338b | ||
|
a0c0a136f8 | ||
|
4a5a47cd31 | ||
|
30413b3da8 | ||
|
802d1f04b5 | ||
|
9a71456dba | ||
|
18a9032f65 | ||
|
9dfc9c25b2 | ||
|
6503c4e22c | ||
|
45858fb6d3 | ||
|
a09700cb03 | ||
|
c6eaa236a0 | ||
|
16f1ef523b | ||
|
fe7fc98c55 | ||
|
501196aa06 | ||
|
8517d883fb | ||
|
e89ebc303b | ||
|
a588de9063 | ||
|
cf838bb707 | ||
|
6c2345758e | ||
|
0ff7d72b6d | ||
|
c03b290a27 | ||
|
4e44be3994 | ||
|
c0f37fd024 | ||
|
67a499fc8c | ||
|
d17a575fce | ||
|
853470a08b | ||
|
612b9c5d44 | ||
|
d9ac4dd7ca | ||
|
209c7e014a | ||
|
1d1212e931 | ||
|
f7c50e9707 | ||
|
2abbb4db99 | ||
|
c530b1ad10 | ||
|
62fad2f272 | ||
|
9c443f5a00 | ||
|
6618883691 | ||
|
b2f5a6b17f | ||
|
e81de635cf | ||
|
08728fcdd1 | ||
|
51585e2a70 | ||
|
174438b287 | ||
|
dab087aa31 | ||
|
c88b05f5d4 | ||
|
369a31988f | ||
|
8dbce1a56d | ||
|
7bef3bb9a4 | ||
|
e496280adf | ||
|
d59bace1d2 | ||
|
f6cfb96f79 | ||
|
2023fed265 | ||
|
92225bc4d3 | ||
|
5899c82c1e | ||
|
1fa28d50be | ||
|
c2d1b2047d | ||
|
55433bb6b4 | ||
|
162ed4e9b0 | ||
|
2a761d722c | ||
|
24eff647ee | ||
|
b7bd8afe10 | ||
|
91679c0103 | ||
|
d079f7360c | ||
|
c9861fe114 | ||
|
b3da07aab9 | ||
|
a070fc6230 | ||
|
7e240ba653 | ||
|
a1ca5bad51 | ||
|
5533241322 | ||
|
22170f370d | ||
|
a5e37c4bba | ||
|
70b081af49 | ||
|
e3522dd422 | ||
|
ced29135a5 | ||
|
ca724baae5 | ||
|
ab10be6fff | ||
|
04a61f9481 | ||
|
15967982a7 | ||
|
d2319f785e | ||
|
4574b3eaa0 | ||
|
e1ac1bda6d | ||
|
ef5297e3c8 | ||
|
e36bb9d0b2 | ||
|
6c543734f5 | ||
|
2dd4aa7aee | ||
|
09432cbfc9 | ||
|
cc4a7f6501 | ||
|
de50ead198 | ||
|
9ccc8a224e | ||
|
9a9c414254 | ||
|
407bbc5dab | ||
|
ed61205a27 | ||
|
3fb6c80323 | ||
|
c8ed80bdab | ||
|
4eb4dcec3a | ||
|
54e8c884ad | ||
|
0415be3984 | ||
|
3dde9d6779 | ||
|
391b2a115c | ||
|
4250de06ff | ||
|
7e759a56fe | ||
|
3426c1944d | ||
|
cc183c7775 | ||
|
3c5bd9767a | ||
|
422919ed9c | ||
|
69d19467b1 | ||
|
7b75598810 | ||
|
fcff39d192 | ||
|
8afeb8f4fe | ||
|
7fc53fd2d0 | ||
|
3ded282e58 | ||
|
164d183edb | ||
|
1b0114b0a7 | ||
|
0650b30ba7 | ||
|
a86df6451e | ||
|
0caeb98969 | ||
|
4c9624250f | ||
|
3f928625f5 | ||
|
2fb084d215 | ||
|
9d90d9739c | ||
|
8c25ec73f6 | ||
97c4cf39b0 | |||
|
b162e279e5 | ||
|
2fd2f1baf8 | ||
|
2c712663f3 | ||
|
bfcd50cae9 | ||
|
3d0f132ea7 | ||
|
d1a5298682 | ||
|
11dc98684b | ||
|
338e10f081 | ||
|
4d35be9ef6 | ||
|
ec885fcce0 | ||
|
417a8beb1e | ||
|
f72697c7e1 | ||
|
e06ee168a2 | ||
|
18f636c02a | ||
|
ade6023b37 | ||
|
03bef48b6a | ||
|
7ef281a116 | ||
|
d54fcecd03 | ||
|
8d2b337586 | ||
|
ff973ac8f6 | ||
|
2f03dc34d0 | ||
|
510377a2d2 | ||
|
b53460a432 | ||
|
4bf3fcb098 | ||
|
310b55fffd | ||
|
b103e3f3b5 | ||
|
beae1a592b | ||
|
78d4290c5f | ||
|
81ddb025d4 | ||
|
5e02a9919f | ||
|
3583ff988a | ||
|
c109dc1884 | ||
|
0d95f9cb25 | ||
|
e82eaff29b | ||
|
1b0bfa0099 | ||
|
9087e3b712 | ||
|
e522e7bd4e | ||
|
9125096820 | ||
|
5205bf8aac | ||
|
0682937e24 | ||
|
661d8e5a61 | ||
|
185a7fa16f | ||
|
ddbca49666 | ||
|
a6fe6ed8c5 | ||
|
d77a9530e5 | ||
|
98c5f94332 | ||
|
f66eb4abbe | ||
|
258297fc74 | ||
|
deeea1b4a5 | ||
|
5a7ae3b124 | ||
|
fe15cff5b5 | ||
|
fe5da65888 | ||
|
10bca651b0 | ||
|
71c33dc92a | ||
|
4945b78af5 | ||
|
cb285c2f1e | ||
|
8412978117 | ||
32c31ea543 | |||
e9218f5e26 | |||
c41765a2d1 | |||
|
daeab1895b | ||
|
b0494acfcf | ||
|
60b6383382 | ||
|
41708557e3 | ||
27562ca050 | |||
|
037363fb37 | ||
|
253ab92606 | ||
a78766c1bc | |||
8ae59a796d | |||
28931c704d | |||
|
ef7e875f9f | ||
|
cb8a4e21a2 | ||
|
3b6d1cb8fb | ||
|
53dd3f2671 | ||
|
5e3e0c4f54 | ||
|
dd5b032b98 | ||
|
3aa654bc32 | ||
|
7dc999b8a1 | ||
3d563ea1a3 | |||
|
733054f9ae | ||
|
cdadbd6c43 | ||
|
fdbe210c84 | ||
|
7fec526dbe | ||
|
a9d2ea9cb2 | ||
a263a4f3bc | |||
a8190433f0 | |||
f362f8302a | |||
|
949e23fe59 | ||
|
c6ff413693 | ||
|
76996a24d7 | ||
|
0dde890170 | ||
|
4e9e7d60a3 | ||
|
d4337fee77 | ||
|
84a39627b0 | ||
|
ae77543870 | ||
|
ae679785be | ||
|
568591d272 | ||
|
f7f72caaff | ||
|
234660f779 | ||
|
d11c44c2eb | ||
|
10ac6a4be2 | ||
|
e1b3ee344b | ||
|
145b381cac | ||
|
7ce83dc8b9 | ||
|
dd3ed752df | ||
|
15ca66ae80 | ||
|
3edf24a017 | ||
|
8d17606324 | ||
|
0b9426eddc | ||
|
8915aa6b8e | ||
|
fbe641a0ca | ||
|
eeba7baf14 | ||
|
87affbf479 | ||
|
6cc44aa96c | ||
|
e50da3095c | ||
|
43f6024a59 | ||
|
cbb1eed5f8 | ||
|
42ad52af0f | ||
|
c26ec9235e | ||
|
1c13958a88 | ||
|
b19cafcdcf | ||
|
5dccdc54c9 | ||
|
ff3cbd12ed | ||
|
c5b50d1b1f | ||
|
8ccb9b2c31 | ||
|
222065570f | ||
|
fb30e8902c | ||
|
fae3ecabb3 | ||
|
2f3b4fd52e | ||
|
9899f67e5d | ||
|
e1bfb99062 | ||
|
1d7b83cd4e | ||
|
797c84d192 | ||
|
41149889bd | ||
|
2ba24a21ff | ||
|
b7cf0dc81f | ||
|
4d59562e5d | ||
|
da734ebe09 | ||
|
63e3a180ad | ||
|
ee4d05cfc8 | ||
|
c657ff1d4d | ||
|
eef30cb4f1 | ||
|
c259f78eb0 | ||
|
a4c7726500 | ||
|
91c4cfe297 | ||
|
688b1b7651 | ||
|
237ad08758 | ||
|
8255043a82 | ||
|
afd3757ce5 | ||
|
74af1f19d4 | ||
|
e515e27cae | ||
|
55237964c1 | ||
|
d5a736429d | ||
|
f2c4223b27 | ||
|
440e68126f | ||
|
430ca5dd6c | ||
|
1afce0dae4 | ||
|
5eed7429ea | ||
|
76bef9cf1f | ||
|
aee2482b11 | ||
|
3e817e2031 | ||
|
aae26c3c07 | ||
|
531425cd57 | ||
|
776070b7d3 | ||
|
ae8e0b0b90 | ||
|
2110356aaa | ||
|
4a1acb3f06 | ||
|
1e12f1a5ff | ||
|
f8051055db | ||
|
9740d40460 | ||
|
2bc812fd4e | ||
|
a3af9173ef | ||
|
96a166bf8d | ||
|
9840cf789a | ||
|
dbc8569c5d | ||
|
3df555baa4 | ||
|
7a8c9e424d | ||
|
0336356d01 | ||
|
b0143c0322 | ||
|
c5dda9bc62 | ||
|
ccf55d5102 | ||
|
52c9fff81b | ||
|
feeea45a31 | ||
|
14212918c1 | ||
|
51c326ca99 | ||
|
4984d0accb | ||
|
95ce8f38b4 | ||
|
ceca327775 | ||
|
ecd5aa4dcf | ||
|
7b56d7398f | ||
|
bfe9dcf55b | ||
|
5f99e912c4 | ||
|
05db7132fb | ||
|
f111408756 | ||
|
f366c18532 | ||
|
d2623a10b4 | ||
|
c3b1f3f23b | ||
|
580568e213 | ||
|
1dcac77bb4 | ||
|
a584462683 | ||
|
e82d4fd7a2 | ||
|
5b790ee6ce | ||
|
0d452ff953 | ||
|
51bd3b500f | ||
|
74e06dbed7 | ||
|
a7f8677cae | ||
|
ae433918be | ||
|
0c7f4ef0f3 | ||
|
a63acb6cc4 | ||
|
a86ff690bf | ||
|
54bad4ce79 | ||
|
56116c36c9 | ||
|
3a3d15135c | ||
|
380b907f84 | ||
|
9c84097622 | ||
|
4f95300588 | ||
|
3f9a52bc9a | ||
|
37cbfbcbf4 | ||
|
cb70f57c87 | ||
|
a6d516e296 | ||
|
37f56ea0f1 | ||
|
bf2b5b469a |
3
.gitignore
vendored
|
@ -10,3 +10,6 @@ tmp/nanoc/
|
|||
crash.log
|
||||
|
||||
.idea/
|
||||
|
||||
|
||||
.sass-cache/
|
||||
|
|
|
@ -1 +1 @@
|
|||
2.7.0
|
||||
2.7.1
|
||||
|
|
32
Dockerfile
Normal file
|
@ -0,0 +1,32 @@
|
|||
# ------- Build -------
|
||||
FROM ruby:2.7.1-alpine3.11 AS build
|
||||
|
||||
RUN apk add build-base
|
||||
|
||||
RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
|
||||
COPY Gemfile .
|
||||
COPY Gemfile.lock .
|
||||
RUN bundle config set deployment 'true'
|
||||
RUN bundle config set without 'development'
|
||||
RUN bundle install
|
||||
|
||||
COPY content content/
|
||||
COPY layouts layouts/
|
||||
COPY lib lib/
|
||||
COPY Guardfile .
|
||||
COPY Rules .
|
||||
COPY nanoc.yaml .
|
||||
|
||||
RUN bundle exec nanoc
|
||||
|
||||
|
||||
|
||||
# ------- Release -------
|
||||
FROM nginx:latest AS release
|
||||
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
COPY --from=build /app/output /usr/share/nginx/html
|
||||
|
||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
9
Gemfile
|
@ -3,18 +3,19 @@ source 'https://rubygems.org'
|
|||
|
||||
gem 'adsf'
|
||||
gem 'autoprefixer-rails'
|
||||
gem 'byebug'
|
||||
gem 'htmlcompressor'
|
||||
gem 'kramdown'
|
||||
gem 'mini_racer'
|
||||
gem 'nanoc'
|
||||
gem 'pdfkit'
|
||||
gem 'sass'
|
||||
gem 'sassc'
|
||||
gem 'slim'
|
||||
gem 'sass'
|
||||
gem 'nokogiri'
|
||||
|
||||
group :nanoc do
|
||||
gem 'guard-nanoc'
|
||||
gem 'guard-livereload'
|
||||
end
|
||||
|
||||
group :development do
|
||||
gem 'byebug'
|
||||
end
|
||||
|
|
91
Gemfile.lock
|
@ -5,28 +5,28 @@ GEM
|
|||
public_suffix (>= 2.0.2, < 5.0)
|
||||
adsf (1.4.3)
|
||||
rack (>= 1.0.0, < 3.0.0)
|
||||
autoprefixer-rails (9.7.4)
|
||||
autoprefixer-rails (9.8.6.3)
|
||||
execjs
|
||||
byebug (11.1.1)
|
||||
coderay (1.1.2)
|
||||
byebug (11.1.3)
|
||||
coderay (1.1.3)
|
||||
colored (1.2)
|
||||
concurrent-ruby (1.1.6)
|
||||
concurrent-ruby (1.1.7)
|
||||
cri (2.15.10)
|
||||
ddmemoize (1.0.0)
|
||||
ddmetrics (~> 1.0)
|
||||
ref (~> 2.0)
|
||||
ddmetrics (1.0.1)
|
||||
ddplugin (1.0.2)
|
||||
diff-lcs (1.3)
|
||||
diff-lcs (1.4.4)
|
||||
em-websocket (0.5.1)
|
||||
eventmachine (>= 0.12.9)
|
||||
http_parser.rb (~> 0.6.0)
|
||||
equatable (0.6.1)
|
||||
eventmachine (1.2.7)
|
||||
execjs (2.7.0)
|
||||
ffi (1.12.2)
|
||||
ffi (1.13.1)
|
||||
formatador (0.2.5)
|
||||
guard (2.16.1)
|
||||
guard (2.16.2)
|
||||
formatador (>= 0.2.4)
|
||||
listen (>= 2.7, < 4.0)
|
||||
lumberjack (>= 1.0.12, < 2.0)
|
||||
|
@ -41,39 +41,48 @@ GEM
|
|||
guard (~> 2.8)
|
||||
guard-compat (~> 1.0)
|
||||
multi_json (~> 1.8)
|
||||
guard-nanoc (2.1.7)
|
||||
guard-nanoc (2.1.9)
|
||||
guard (~> 2.8)
|
||||
guard-compat (~> 1.0)
|
||||
nanoc (>= 4.11.13, < 5.0)
|
||||
nanoc-cli (~> 4.11, >= 4.11.14)
|
||||
nanoc-core (~> 4.11, >= 4.11.14)
|
||||
hamster (3.0.0)
|
||||
concurrent-ruby (~> 1.0)
|
||||
htmlcompressor (0.4.0)
|
||||
http_parser.rb (0.6.0)
|
||||
json_schema (0.20.8)
|
||||
kramdown (2.1.0)
|
||||
libv8 (7.3.492.27.1)
|
||||
json_schema (0.20.9)
|
||||
kramdown (2.3.0)
|
||||
rexml
|
||||
libv8 (8.4.255.0)
|
||||
listen (3.2.1)
|
||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
lumberjack (1.2.4)
|
||||
method_source (0.9.2)
|
||||
mini_racer (0.2.9)
|
||||
libv8 (>= 6.9.411)
|
||||
multi_json (1.14.1)
|
||||
nanoc (4.11.14)
|
||||
lumberjack (1.2.7)
|
||||
method_source (1.0.0)
|
||||
mini_portile2 (2.4.0)
|
||||
mini_racer (0.3.1)
|
||||
libv8 (~> 8.4.255)
|
||||
multi_json (1.15.0)
|
||||
nanoc (4.11.18)
|
||||
addressable (~> 2.5)
|
||||
colored (~> 1.2)
|
||||
nanoc-cli (= 4.11.14)
|
||||
nanoc-core (= 4.11.14)
|
||||
nanoc-checking (~> 1.0)
|
||||
nanoc-cli (= 4.11.18)
|
||||
nanoc-core (= 4.11.18)
|
||||
nanoc-deploying (~> 1.0)
|
||||
parallel (~> 1.12)
|
||||
tty-command (~> 0.8)
|
||||
tty-which (~> 0.4)
|
||||
nanoc-cli (4.11.14)
|
||||
nanoc-checking (1.0.0)
|
||||
nanoc-cli (~> 4.11, >= 4.11.15)
|
||||
nanoc-core (~> 4.11, >= 4.11.15)
|
||||
nanoc-cli (4.11.18)
|
||||
cri (~> 2.15)
|
||||
diff-lcs (~> 1.3)
|
||||
nanoc-core (= 4.11.14)
|
||||
nanoc-core (= 4.11.18)
|
||||
zeitwerk (~> 2.1)
|
||||
nanoc-core (4.11.14)
|
||||
nanoc-core (4.11.18)
|
||||
concurrent-ruby (~> 1.1)
|
||||
ddmemoize (~> 1.0)
|
||||
ddmetrics (~> 1.0)
|
||||
ddplugin (~> 1.0)
|
||||
|
@ -83,46 +92,53 @@ GEM
|
|||
tomlrb (~> 1.2)
|
||||
tty-platform (~> 0.2)
|
||||
zeitwerk (~> 2.1)
|
||||
nanoc-deploying (1.0.0)
|
||||
nanoc-checking (~> 1.0)
|
||||
nanoc-cli (~> 4.11, >= 4.11.15)
|
||||
nanoc-core (~> 4.11, >= 4.11.15)
|
||||
nenv (0.3.0)
|
||||
nokogiri (1.10.10)
|
||||
mini_portile2 (~> 2.4.0)
|
||||
notiffany (0.1.3)
|
||||
nenv (~> 0.1)
|
||||
shellany (~> 0.0)
|
||||
parallel (1.19.1)
|
||||
pastel (0.7.3)
|
||||
parallel (1.19.2)
|
||||
pastel (0.7.4)
|
||||
equatable (~> 0.6)
|
||||
tty-color (~> 0.5)
|
||||
pdfkit (0.8.4.1)
|
||||
pry (0.12.2)
|
||||
coderay (~> 1.1.0)
|
||||
method_source (~> 0.9.0)
|
||||
public_suffix (4.0.3)
|
||||
rack (2.2.2)
|
||||
rb-fsevent (0.10.3)
|
||||
pdfkit (0.8.4.3.2)
|
||||
pry (0.13.1)
|
||||
coderay (~> 1.1)
|
||||
method_source (~> 1.0)
|
||||
public_suffix (4.0.5)
|
||||
rack (2.2.3)
|
||||
rb-fsevent (0.10.4)
|
||||
rb-inotify (0.10.1)
|
||||
ffi (~> 1.0)
|
||||
ref (2.0.0)
|
||||
rexml (3.2.4)
|
||||
sass (3.7.4)
|
||||
sass-listen (~> 4.0.0)
|
||||
sass-listen (4.0.0)
|
||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||
rb-inotify (~> 0.9, >= 0.9.7)
|
||||
sassc (2.2.1)
|
||||
sassc (2.4.0)
|
||||
ffi (~> 1.9)
|
||||
shellany (0.0.1)
|
||||
slim (4.0.1)
|
||||
slim (4.1.0)
|
||||
temple (>= 0.7.6, < 0.9)
|
||||
tilt (>= 2.0.6, < 2.1)
|
||||
slow_enumerator_tools (1.1.0)
|
||||
temple (0.8.2)
|
||||
thor (1.0.1)
|
||||
tilt (2.0.10)
|
||||
tomlrb (1.2.9)
|
||||
tty-color (0.5.1)
|
||||
tomlrb (1.3.0)
|
||||
tty-color (0.5.2)
|
||||
tty-command (0.9.0)
|
||||
pastel (~> 0.7.0)
|
||||
tty-platform (0.3.0)
|
||||
tty-which (0.4.2)
|
||||
zeitwerk (2.2.2)
|
||||
zeitwerk (2.4.0)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
@ -137,6 +153,7 @@ DEPENDENCIES
|
|||
kramdown
|
||||
mini_racer
|
||||
nanoc
|
||||
nokogiri
|
||||
pdfkit
|
||||
sass
|
||||
sassc
|
||||
|
|
11
Makefile
|
@ -1,2 +1,11 @@
|
|||
.PHONY: live build setup
|
||||
|
||||
live:
|
||||
bundle exec nanoc live
|
||||
|
||||
build:
|
||||
nanoc
|
||||
bundle exec nanoc
|
||||
|
||||
setup:
|
||||
which bundle || { { gem install bundler && which bundle; } || echo 'Could not find `bundle`.'" Make sure the directory with the Ruby's gem executables is in your PATH. (Typically ~/.gem/ruby/*/bin)" && false; }
|
||||
bundle install
|
||||
|
|
24
README.md
|
@ -3,6 +3,24 @@ Durf Doen 2.0
|
|||
|
||||
## Setup instructions
|
||||
|
||||
1. Install bundler (`gem install bundler`)
|
||||
2. Install other gems (`bundle install`)
|
||||
3. Build and serve the site (`bundle exec nanoc live`)
|
||||
1. Install Ruby, preferably the version specified in `.ruby-version`
|
||||
2. Install bundler (`gem install bundler`)
|
||||
3. Install other dependencies (`bundle install`)
|
||||
4. Build and serve the site (`bundle exec nanoc live`)
|
||||
|
||||
To build the artefacts for production: `bundle exec nanoc`
|
||||
|
||||
### Setup on windows
|
||||
|
||||
This is very flaky, but it might help to
|
||||
- Of course only install Ruby 2.6
|
||||
- Change `gem 'mini_racer'` to `gem 'mini_racer', platforms: :ruby` in Gemfile
|
||||
- Follow this GitHub page https://github.com/eakmotion/therubyracer_for_windows
|
||||
- Edit this file `C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\eventmachine-1.2.7-x64-mingw32\lib`, adding `require 'em pure_ruby'` and a newline to the top of the file
|
||||
- After all this, on my machine, it still throws an exception, but the live reloading works, until it doesn't (most of the time after a failed compile)
|
||||
|
||||
### Optional setup via Docker
|
||||
|
||||
You can run the code in a separated Docker environment. It compiles the code and serves the files via nginx.
|
||||
|
||||
docker build --tag durfdoen2 . && docker run --publish 8080:80 --detach --name dd durfdoen2
|
||||
|
|
57
Rules
|
@ -1,23 +1,32 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
compile '/verenigingen/*.md' do
|
||||
preprocess do
|
||||
# Fetch a list of theme names from all items and construct items from them
|
||||
themas = @items.map { |i| i[:themas] }.flatten.uniq.compact
|
||||
themas.each do |thema|
|
||||
content = ''
|
||||
attributes = {
|
||||
identifier: thema,
|
||||
naam: thema.downcase
|
||||
}
|
||||
identifier = "/themas/#{thema}"
|
||||
|
||||
@items.create(content, attributes, identifier)
|
||||
end
|
||||
end
|
||||
|
||||
compile '/{verenigingen,projecten,konventen}/*.md' do
|
||||
filter :kramdown
|
||||
layout '/vereniging.*'
|
||||
layout '/detail.*'
|
||||
layout '/default.*'
|
||||
layout '/base.*'
|
||||
write ext: 'html'
|
||||
end
|
||||
|
||||
compile '/events/*.md' do
|
||||
filter :kramdown
|
||||
layout '/event.*'
|
||||
layout '/default.*'
|
||||
write ext: 'html'
|
||||
end
|
||||
|
||||
compile '/konventen/*.md' do
|
||||
filter :kramdown
|
||||
layout '/konvent.*'
|
||||
compile '/themas/*' do
|
||||
layout '/thema.*'
|
||||
layout '/default.*'
|
||||
layout '/base.*'
|
||||
write ext: 'html'
|
||||
end
|
||||
|
||||
|
@ -25,6 +34,7 @@ compile '/homepage.md' do
|
|||
filter :kramdown
|
||||
layout '/homepage.*'
|
||||
layout '/default.*'
|
||||
layout '/base.*'
|
||||
write '/index.html'
|
||||
end
|
||||
|
||||
|
@ -32,29 +42,33 @@ compile '/faq/*' do
|
|||
filter :kramdown
|
||||
end
|
||||
|
||||
compile '/faq.erb' do
|
||||
filter :erb
|
||||
layout '/default.*'
|
||||
write '/faq/index.html'
|
||||
end
|
||||
|
||||
compile '/verenigingen.md' do
|
||||
filter :kramdown
|
||||
layout '/verenigingen.*'
|
||||
layout '/default.*'
|
||||
write ext: 'html'
|
||||
layout '/base.*'
|
||||
write '/verenigingen/index.html'
|
||||
end
|
||||
|
||||
compile '/quiz.md' do
|
||||
filter :kramdown
|
||||
layout '/quiz.*'
|
||||
layout '/default.*'
|
||||
layout '/base.*'
|
||||
write '/quiz/index.html'
|
||||
end
|
||||
|
||||
compile '/search.html.erb' do
|
||||
filter :erb
|
||||
layout '/default.*'
|
||||
layout '/base.*'
|
||||
write ext: 'html'
|
||||
end
|
||||
|
||||
compile '/*.md' do
|
||||
filter :kramdown
|
||||
layout '/default.*'
|
||||
layout '/base.*'
|
||||
write ext: 'html'
|
||||
end
|
||||
|
||||
|
@ -66,7 +80,9 @@ end
|
|||
|
||||
compile '/*.erb' do
|
||||
filter :erb
|
||||
write item.identifier.without_ext
|
||||
layout '/default.*'
|
||||
layout '/base.*'
|
||||
write item.identifier.without_ext + '/index.html'
|
||||
end
|
||||
|
||||
layout '/**/*', :erb
|
||||
|
@ -75,4 +91,3 @@ layout '/**/*', :erb
|
|||
compile '/**/*' do
|
||||
write item.identifier.to_s
|
||||
end
|
||||
|
||||
|
|
BIN
content/assets/durfDoenClean.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
content/assets/durfdoenlogo.png
Normal file
After Width: | Height: | Size: 17 KiB |
16
content/assets/js/random_vereniging.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
window.addEventListener('load', function() {
|
||||
let options = document.getElementsByClassName('randomVerenigingWrapper');
|
||||
let selected = Array.from(options).map(x => ({ x, r: Math.random() + -0.5 * x.hasAttribute('data-iszeus')}))
|
||||
.sort((a, b) => a.r - b.r)
|
||||
.map(a => a.x)
|
||||
.slice(0, 3)
|
||||
.map(x => ({ x, r: Math.random()}))
|
||||
.sort((a, b) => a.r - b.r)
|
||||
.map(a => a.x);
|
||||
|
||||
let destination = document.getElementById("display_repo");
|
||||
for (node of selected) {
|
||||
node.getElementsByTagName("img")[0].setAttribute("loading", "eager");
|
||||
destination.prepend(node);
|
||||
}
|
||||
});
|
BIN
content/assets/logos/AstridA.jpg
Normal file
After Width: | Height: | Size: 152 KiB |
BIN
content/assets/logos/AstridB.jpg
Normal file
After Width: | Height: | Size: 164 KiB |
BIN
content/assets/logos/AstridC.jpg
Normal file
After Width: | Height: | Size: 398 KiB |
BIN
content/assets/logos/AtelierA.png
Normal file
After Width: | Height: | Size: 980 KiB |
BIN
content/assets/logos/AtelierB.png
Normal file
After Width: | Height: | Size: 676 KiB |
BIN
content/assets/logos/AtelierC.png
Normal file
After Width: | Height: | Size: 874 KiB |
BIN
content/assets/logos/AuwLaA.jpg
Normal file
After Width: | Height: | Size: 660 KiB |
BIN
content/assets/logos/AuwLaB.jpg
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
content/assets/logos/AuwLaC.jpg
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
content/assets/logos/BUKA.jpg
Normal file
After Width: | Height: | Size: 221 KiB |
BIN
content/assets/logos/BUKB.jpg
Normal file
After Width: | Height: | Size: 118 KiB |
BIN
content/assets/logos/BUKC.jpg
Normal file
After Width: | Height: | Size: 474 KiB |
BIN
content/assets/logos/BemsaB.jpg
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
content/assets/logos/BemsaC.jpg
Normal file
After Width: | Height: | Size: 4.1 MiB |
BIN
content/assets/logos/BerthaA.PNG
Normal file
After Width: | Height: | Size: 727 KiB |
BIN
content/assets/logos/BerthaB.jpg
Normal file
After Width: | Height: | Size: 109 KiB |
BIN
content/assets/logos/BerthaC.jpg
Normal file
After Width: | Height: | Size: 121 KiB |
BIN
content/assets/logos/BoudewijnA.PNG
Normal file
After Width: | Height: | Size: 450 KiB |
BIN
content/assets/logos/BoudewijnB.jpg
Normal file
After Width: | Height: | Size: 376 KiB |
BIN
content/assets/logos/BoudewijnC.jpg
Normal file
After Width: | Height: | Size: 130 KiB |
BIN
content/assets/logos/CDSA.JPG
Normal file
After Width: | Height: | Size: 4.2 MiB |
BIN
content/assets/logos/CDSB.jpg
Normal file
After Width: | Height: | Size: 3.5 MiB |
BIN
content/assets/logos/CDSC.jpg
Normal file
After Width: | Height: | Size: 4.3 MiB |
BIN
content/assets/logos/CapitantA.jpg
Normal file
After Width: | Height: | Size: 490 KiB |
BIN
content/assets/logos/CapitantB.jpg
Normal file
After Width: | Height: | Size: 428 KiB |
BIN
content/assets/logos/CapitantC.jpg
Normal file
After Width: | Height: | Size: 405 KiB |
BIN
content/assets/logos/ComacA.jpg
Normal file
After Width: | Height: | Size: 657 KiB |
BIN
content/assets/logos/ComacB.jpg
Normal file
After Width: | Height: | Size: 198 KiB |
BIN
content/assets/logos/ComacC.jpg
Normal file
After Width: | Height: | Size: 108 KiB |
BIN
content/assets/logos/DentaliaA.jpg
Normal file
After Width: | Height: | Size: 242 KiB |
BIN
content/assets/logos/DentaliaB.jpg
Normal file
After Width: | Height: | Size: 461 KiB |
BIN
content/assets/logos/DentaliaC.jpg
Normal file
After Width: | Height: | Size: 268 KiB |
BIN
content/assets/logos/EngageA.jpg
Normal file
After Width: | Height: | Size: 2.5 MiB |
BIN
content/assets/logos/EngageB.jpg
Normal file
After Width: | Height: | Size: 4.9 MiB |
BIN
content/assets/logos/EngageC.jpg
Normal file
After Width: | Height: | Size: 7.5 MiB |
BIN
content/assets/logos/FabiolaA.jpg
Normal file
After Width: | Height: | Size: 572 KiB |
BIN
content/assets/logos/FabiolaB.jpg
Normal file
After Width: | Height: | Size: 536 KiB |
BIN
content/assets/logos/FabiolaC.jpg
Normal file
After Width: | Height: | Size: 163 KiB |
BIN
content/assets/logos/GSRA.jpg
Normal file
After Width: | Height: | Size: 375 KiB |
BIN
content/assets/logos/GSRB.jpg
Normal file
After Width: | Height: | Size: 101 KiB |
BIN
content/assets/logos/GSRC.jpg
Normal file
After Width: | Height: | Size: 4.9 MiB |
BIN
content/assets/logos/GUDcA.jpg
Normal file
After Width: | Height: | Size: 221 KiB |
BIN
content/assets/logos/GUDcB.png
Normal file
After Width: | Height: | Size: 892 KiB |
BIN
content/assets/logos/GUDcC.jpg
Normal file
After Width: | Height: | Size: 150 KiB |
BIN
content/assets/logos/GUHOA.jpg
Normal file
After Width: | Height: | Size: 422 KiB |
BIN
content/assets/logos/GUHOB.jpg
Normal file
After Width: | Height: | Size: 217 KiB |
BIN
content/assets/logos/GUHOC.jpg
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
content/assets/logos/GUKA.jpg
Normal file
After Width: | Height: | Size: 464 KiB |
BIN
content/assets/logos/GUKB.jpg
Normal file
After Width: | Height: | Size: 120 KiB |
BIN
content/assets/logos/GUKC.jpg
Normal file
After Width: | Height: | Size: 193 KiB |
BIN
content/assets/logos/GUSOA.jpg
Normal file
After Width: | Height: | Size: 323 KiB |
BIN
content/assets/logos/GUSOB.jpg
Normal file
After Width: | Height: | Size: 1.9 MiB |
BIN
content/assets/logos/GUSOC.jpg
Normal file
After Width: | Height: | Size: 2.4 MiB |
BIN
content/assets/logos/HILOKA.jpg
Normal file
After Width: | Height: | Size: 463 KiB |
BIN
content/assets/logos/HILOKB.jpg
Normal file
After Width: | Height: | Size: 296 KiB |
BIN
content/assets/logos/HILOKC.jpg
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
content/assets/logos/HKA.jpg
Normal file
After Width: | Height: | Size: 328 KiB |
BIN
content/assets/logos/HKB.PNG
Normal file
After Width: | Height: | Size: 810 KiB |
BIN
content/assets/logos/HKC.PNG
Normal file
After Width: | Height: | Size: 565 KiB |
BIN
content/assets/logos/IAASA.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
content/assets/logos/IAASB.JPG
Normal file
After Width: | Height: | Size: 4.8 MiB |
BIN
content/assets/logos/IAASC.jpg
Normal file
After Width: | Height: | Size: 940 KiB |
BIN
content/assets/logos/KajiraA.jpg
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
content/assets/logos/KajiraB.jpg
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
content/assets/logos/KajiraC.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
content/assets/logos/KlassiekeKringA.jpg
Normal file
After Width: | Height: | Size: 307 KiB |
BIN
content/assets/logos/KlassiekeKringB.jpg
Normal file
After Width: | Height: | Size: 500 KiB |
BIN
content/assets/logos/KlassiekeKringC.jpg
Normal file
After Width: | Height: | Size: 266 KiB |
BIN
content/assets/logos/MatrakA.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
content/assets/logos/MatrakB.jpg
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
content/assets/logos/MatrakC.jpg
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
content/assets/logos/PkarusA.jpg
Normal file
After Width: | Height: | Size: 108 KiB |
BIN
content/assets/logos/PkarusB.jpg
Normal file
After Width: | Height: | Size: 185 KiB |
BIN
content/assets/logos/PkarusC.jpg
Normal file
After Width: | Height: | Size: 186 KiB |
BIN
content/assets/logos/PoutrixA.jpg
Normal file
After Width: | Height: | Size: 3.8 MiB |
BIN
content/assets/logos/PoutrixB.jpg
Normal file
After Width: | Height: | Size: 2.7 MiB |
BIN
content/assets/logos/PoutrixC.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
content/assets/logos/StufaA.jpg
Normal file
After Width: | Height: | Size: 692 KiB |
BIN
content/assets/logos/StufaB.jpg
Normal file
After Width: | Height: | Size: 302 KiB |
BIN
content/assets/logos/StufaC.jpg
Normal file
After Width: | Height: | Size: 294 KiB |
BIN
content/assets/logos/StuvecoA.jpg
Normal file
After Width: | Height: | Size: 105 KiB |
BIN
content/assets/logos/StuvecoB.jpg
Normal file
After Width: | Height: | Size: 105 KiB |
BIN
content/assets/logos/StuvecoC.jpg
Normal file
After Width: | Height: | Size: 102 KiB |
BIN
content/assets/logos/TomonokaiA.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
content/assets/logos/TomonokaiB.jpg
Normal file
After Width: | Height: | Size: 1.9 MiB |
BIN
content/assets/logos/TomonokaiC.jpg
Normal file
After Width: | Height: | Size: 4 MiB |
BIN
content/assets/logos/UrgentFMA.jpg
Normal file
After Width: | Height: | Size: 6.2 MiB |
BIN
content/assets/logos/UrgentFMB.jpg
Normal file
After Width: | Height: | Size: 5.6 MiB |