alula 0.4.10 → 0.4.11a
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/alula/cli.rb +10 -1
- data/lib/alula/config.rb +3 -0
- data/lib/alula/core_ext/tags/video.rb +2 -0
- data/lib/alula/processor.rb +1 -1
- data/lib/alula/site.rb +6 -0
- data/lib/alula/version.rb +9 -2
- metadata +80 -280
- data/.gitignore +0 -19
- data/Gemfile +0 -11
- data/Guardfile +0 -9
- data/README.md +0 -29
- data/Rakefile +0 -17
- data/VERSION +0 -1
- data/alula.gemspec +0 -48
- data/locales/en.yml +0 -11
- data/locales/fi.yml +0 -11
- data/locales/l10n/ar.yml +0 -199
- data/locales/l10n/az.yml +0 -199
- data/locales/l10n/bg.yml +0 -199
- data/locales/l10n/bn-IN.yml +0 -182
- data/locales/l10n/bs.yml +0 -242
- data/locales/l10n/ca.yml +0 -199
- data/locales/l10n/cs.yml +0 -198
- data/locales/l10n/csb.yml +0 -210
- data/locales/l10n/cy.yml +0 -199
- data/locales/l10n/da.yml +0 -199
- data/locales/l10n/de-AT.yml +0 -203
- data/locales/l10n/de-CH.yml +0 -203
- data/locales/l10n/de.yml +0 -203
- data/locales/l10n/dsb.yml +0 -215
- data/locales/l10n/el.yml +0 -199
- data/locales/l10n/en-AU.yml +0 -205
- data/locales/l10n/en-CA.yml +0 -214
- data/locales/l10n/en-GB.yml +0 -205
- data/locales/l10n/en-IN.yml +0 -205
- data/locales/l10n/en-US.yml +0 -205
- data/locales/l10n/en.yml +0 -205
- data/locales/l10n/eo.yml +0 -201
- data/locales/l10n/es-AR.yml +0 -205
- data/locales/l10n/es-CL.yml +0 -199
- data/locales/l10n/es-CO.yml +0 -205
- data/locales/l10n/es-MX.yml +0 -205
- data/locales/l10n/es-PE.yml +0 -181
- data/locales/l10n/es-VE.yml +0 -205
- data/locales/l10n/es.yml +0 -199
- data/locales/l10n/et.yml +0 -199
- data/locales/l10n/eu.yml +0 -199
- data/locales/l10n/fa.yml +0 -199
- data/locales/l10n/fi.yml +0 -199
- data/locales/l10n/fr-CA.yml +0 -207
- data/locales/l10n/fr-CH.yml +0 -207
- data/locales/l10n/fr.yml +0 -222
- data/locales/l10n/fur.yml +0 -199
- data/locales/l10n/gl-ES.yml +0 -178
- data/locales/l10n/gsw-CH.yml +0 -199
- data/locales/l10n/he.yml +0 -201
- data/locales/l10n/hi-IN.yml +0 -199
- data/locales/l10n/hi.yml +0 -199
- data/locales/l10n/hr.yml +0 -237
- data/locales/l10n/hsb.yml +0 -214
- data/locales/l10n/hu.yml +0 -199
- data/locales/l10n/id.yml +0 -200
- data/locales/l10n/is.yml +0 -213
- data/locales/l10n/it.yml +0 -205
- data/locales/l10n/ja.yml +0 -197
- data/locales/l10n/kn.yml +0 -199
- data/locales/l10n/ko.yml +0 -197
- data/locales/l10n/lo.yml +0 -186
- data/locales/l10n/lt.yml +0 -182
- data/locales/l10n/lv.yml +0 -215
- data/locales/l10n/mk.yml +0 -170
- data/locales/l10n/mn.yml +0 -205
- data/locales/l10n/nb.yml +0 -207
- data/locales/l10n/nl.yml +0 -199
- data/locales/l10n/nn.yml +0 -160
- data/locales/l10n/pl.yml +0 -221
- data/locales/l10n/pt-BR.yml +0 -207
- data/locales/l10n/pt-PT.yml +0 -207
- data/locales/l10n/quotes.yml +0 -24
- data/locales/l10n/rm.yml +0 -182
- data/locales/l10n/ro.yml +0 -199
- data/locales/l10n/ru.yml +0 -257
- data/locales/l10n/sk.yml +0 -213
- data/locales/l10n/sl.yml +0 -210
- data/locales/l10n/sr-Latn.yml +0 -170
- data/locales/l10n/sr.yml +0 -170
- data/locales/l10n/sv-SE.yml +0 -199
- data/locales/l10n/sw.yml +0 -197
- data/locales/l10n/th.yml +0 -173
- data/locales/l10n/tl.yml +0 -229
- data/locales/l10n/tr.yml +0 -199
- data/locales/l10n/uk.yml +0 -257
- data/locales/l10n/vi.yml +0 -201
- data/locales/l10n/wo.yml +0 -205
- data/locales/l10n/zh-CN.yml +0 -199
- data/locales/l10n/zh-TW.yml +0 -199
- data/template/Gemfile.erb +0 -15
- data/template/README +0 -16
- data/template/config.yml.erb +0 -42
- data/test/fixtures/config_001_simple.yml +0 -2
- data/test/fixtures/config_002_l10n.yml +0 -5
- data/test/fixtures/pages/invalid-page.markdown +0 -1
- data/test/fixtures/pages/multilingual-page.markdown +0 -20
- data/test/fixtures/pages/section/subpage.markdown +0 -5
- data/test/fixtures/pages/simple-page.markdown +0 -7
- data/test/fixtures/posts/2012-07-02-invalid-post.markdown +0 -1
- data/test/fixtures/posts/2012-07-02-simple.markdown +0 -7
- data/test/fixtures/posts/2012-07-03-full-metadata.markdown +0 -8
- data/test/fixtures/posts/2012-07-03-multilingual-full-metadata.markdown +0 -20
- data/test/fixtures/theme/test/layouts/default.html.erb +0 -1
- data/test/fixtures/theme/test/views/page.html.erb +0 -1
- data/test/fixtures/theme/test/views/post.html.erb +0 -1
- data/test/minitest_helper.rb +0 -14
- data/test/test_config.rb +0 -33
- data/test/test_content.rb +0 -30
- data/test/test_metadata.rb +0 -83
- data/test/test_page.rb +0 -81
- data/test/test_post.rb +0 -123
- data/test/test_storage.rb +0 -23
- data/test/test_storage_file.rb +0 -32
- data/test/test_theme.rb +0 -45
- data/vendor/assets/images/favicon.png +0 -0
- data/vendor/assets/images/grey.gif +0 -0
- data/vendor/assets/javascripts/jquery.alula.js.coffee +0 -16
- data/vendor/assets/javascripts/jquery.js +0 -4
- data/vendor/assets/javascripts/jquery.lazyload.js +0 -210
- data/vendor/assets/javascripts/lazyload.js.coffee +0 -15
- data/vendor/layouts/feed.xml.builder +0 -19
- data/vendor/layouts/sitemap.xml.builder +0 -10
- data/vendor/static/favicon.ico +0 -0
- data/vendor/views/feed_post.html.haml +0 -1
- /data/{LICENSE → MIT-LICENSE} +0 -0
data/locales/l10n/zh-CN.yml
DELETED
@@ -1,199 +0,0 @@
|
|
1
|
-
zh-CN:
|
2
|
-
date:
|
3
|
-
abbr_day_names:
|
4
|
-
- 日
|
5
|
-
- 一
|
6
|
-
- 二
|
7
|
-
- 三
|
8
|
-
- 四
|
9
|
-
- 五
|
10
|
-
- 六
|
11
|
-
abbr_month_names:
|
12
|
-
-
|
13
|
-
- 1月
|
14
|
-
- 2月
|
15
|
-
- 3月
|
16
|
-
- 4月
|
17
|
-
- 5月
|
18
|
-
- 6月
|
19
|
-
- 7月
|
20
|
-
- 8月
|
21
|
-
- 9月
|
22
|
-
- 10月
|
23
|
-
- 11月
|
24
|
-
- 12月
|
25
|
-
day_names:
|
26
|
-
- 星期日
|
27
|
-
- 星期一
|
28
|
-
- 星期二
|
29
|
-
- 星期三
|
30
|
-
- 星期四
|
31
|
-
- 星期五
|
32
|
-
- 星期六
|
33
|
-
formats:
|
34
|
-
default: ! '%Y-%m-%d'
|
35
|
-
long: ! '%Y年%b%d日'
|
36
|
-
short: ! '%b%d日'
|
37
|
-
month_names:
|
38
|
-
-
|
39
|
-
- 一月
|
40
|
-
- 二月
|
41
|
-
- 三月
|
42
|
-
- 四月
|
43
|
-
- 五月
|
44
|
-
- 六月
|
45
|
-
- 七月
|
46
|
-
- 八月
|
47
|
-
- 九月
|
48
|
-
- 十月
|
49
|
-
- 十一月
|
50
|
-
- 十二月
|
51
|
-
order:
|
52
|
-
- :year
|
53
|
-
- :month
|
54
|
-
- :day
|
55
|
-
datetime:
|
56
|
-
distance_in_words:
|
57
|
-
about_x_hours:
|
58
|
-
one: 大约一小时
|
59
|
-
other: 大约 %{count} 小时
|
60
|
-
about_x_months:
|
61
|
-
one: 大约一个月
|
62
|
-
other: 大约 %{count} 个月
|
63
|
-
about_x_years:
|
64
|
-
one: 大约一年
|
65
|
-
other: 大约 %{count} 年
|
66
|
-
almost_x_years:
|
67
|
-
one: 接近一年
|
68
|
-
other: 接近 %{count} 年
|
69
|
-
half_a_minute: 半分钟
|
70
|
-
less_than_x_minutes:
|
71
|
-
one: 不到一分钟
|
72
|
-
other: 不到 %{count} 分钟
|
73
|
-
less_than_x_seconds:
|
74
|
-
one: 不到一秒
|
75
|
-
other: 不到 %{count} 秒
|
76
|
-
over_x_years:
|
77
|
-
one: 一年多
|
78
|
-
other: ! '%{count} 年多'
|
79
|
-
x_days:
|
80
|
-
one: 一天
|
81
|
-
other: ! '%{count} 天'
|
82
|
-
x_minutes:
|
83
|
-
one: 一分钟
|
84
|
-
other: ! '%{count} 分钟'
|
85
|
-
x_months:
|
86
|
-
one: 一个月
|
87
|
-
other: ! '%{count} 个月'
|
88
|
-
x_seconds:
|
89
|
-
one: 一秒
|
90
|
-
other: ! '%{count} 秒'
|
91
|
-
prompts:
|
92
|
-
day: 日
|
93
|
-
hour: 时
|
94
|
-
minute: 分
|
95
|
-
month: 月
|
96
|
-
second: 秒
|
97
|
-
year: 年
|
98
|
-
errors: &errors
|
99
|
-
format: ! '%{attribute} %{message}'
|
100
|
-
messages:
|
101
|
-
accepted: 必须是可被接受的
|
102
|
-
blank: 不能为空字符
|
103
|
-
confirmation: 与确认值不匹配
|
104
|
-
empty: 不能留空
|
105
|
-
equal_to: 必须等于 %{count}
|
106
|
-
even: 必须为双数
|
107
|
-
exclusion: 是保留关键字
|
108
|
-
greater_than: 必须大于 %{count}
|
109
|
-
greater_than_or_equal_to: 必须大于或等于 %{count}
|
110
|
-
inclusion: 不包含于列表中
|
111
|
-
invalid: 是无效的
|
112
|
-
less_than: 必须小于 %{count}
|
113
|
-
less_than_or_equal_to: 必须小于或等于 %{count}
|
114
|
-
not_a_number: 不是数字
|
115
|
-
not_an_integer: 必须是整数
|
116
|
-
odd: 必须为单数
|
117
|
-
record_invalid: ! '验证失败: %{errors}'
|
118
|
-
taken: 已经被使用
|
119
|
-
too_long: 过长(最长为 %{count} 个字符)
|
120
|
-
too_short: 过短(最短为 %{count} 个字符)
|
121
|
-
wrong_length: 长度非法(必须为 %{count} 个字符)
|
122
|
-
template:
|
123
|
-
body: 如下字段出现错误:
|
124
|
-
header:
|
125
|
-
one: 有 1 个错误发生导致「%{model}」无法被保存。
|
126
|
-
other: 有 %{count} 个错误发生导致「%{model}」无法被保存。
|
127
|
-
helpers:
|
128
|
-
select:
|
129
|
-
prompt: 请选择
|
130
|
-
submit:
|
131
|
-
create: 新增%{model}
|
132
|
-
submit: 储存%{model}
|
133
|
-
update: 更新%{model}
|
134
|
-
number:
|
135
|
-
currency:
|
136
|
-
format:
|
137
|
-
delimiter: ! ','
|
138
|
-
format: ! '%u %n'
|
139
|
-
precision: 2
|
140
|
-
separator: .
|
141
|
-
significant: false
|
142
|
-
strip_insignificant_zeros: false
|
143
|
-
unit: CN¥
|
144
|
-
format:
|
145
|
-
delimiter: ! ','
|
146
|
-
precision: 3
|
147
|
-
separator: .
|
148
|
-
significant: false
|
149
|
-
strip_insignificant_zeros: false
|
150
|
-
human:
|
151
|
-
decimal_units:
|
152
|
-
format: ! '%n %u'
|
153
|
-
units:
|
154
|
-
billion: 十亿
|
155
|
-
million: 百万
|
156
|
-
quadrillion: 千兆
|
157
|
-
thousand: 千
|
158
|
-
trillion: 兆
|
159
|
-
unit: ''
|
160
|
-
format:
|
161
|
-
delimiter: ''
|
162
|
-
precision: 1
|
163
|
-
significant: false
|
164
|
-
strip_insignificant_zeros: false
|
165
|
-
storage_units:
|
166
|
-
format: ! '%n %u'
|
167
|
-
units:
|
168
|
-
byte:
|
169
|
-
one: Byte
|
170
|
-
other: Bytes
|
171
|
-
gb: GB
|
172
|
-
kb: KB
|
173
|
-
mb: MB
|
174
|
-
tb: TB
|
175
|
-
percentage:
|
176
|
-
format:
|
177
|
-
delimiter: ''
|
178
|
-
precision:
|
179
|
-
format:
|
180
|
-
delimiter: ''
|
181
|
-
support:
|
182
|
-
array:
|
183
|
-
last_word_connector: ! ', 和 '
|
184
|
-
two_words_connector: ! ' 和 '
|
185
|
-
words_connector: ! ', '
|
186
|
-
time:
|
187
|
-
am: 上午
|
188
|
-
formats:
|
189
|
-
default: ! '%Y年%b%d日 %A %H:%M:%S %Z'
|
190
|
-
long: ! '%Y年%b%d日 %H:%M'
|
191
|
-
short: ! '%b%d日 %H:%M'
|
192
|
-
pm: 下午
|
193
|
-
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
194
|
-
activemodel:
|
195
|
-
errors:
|
196
|
-
<<: *errors
|
197
|
-
activerecord:
|
198
|
-
errors:
|
199
|
-
<<: *errors
|
data/locales/l10n/zh-TW.yml
DELETED
@@ -1,199 +0,0 @@
|
|
1
|
-
zh-TW:
|
2
|
-
date:
|
3
|
-
abbr_day_names:
|
4
|
-
- 日
|
5
|
-
- 一
|
6
|
-
- 二
|
7
|
-
- 三
|
8
|
-
- 四
|
9
|
-
- 五
|
10
|
-
- 六
|
11
|
-
abbr_month_names:
|
12
|
-
-
|
13
|
-
- 1月
|
14
|
-
- 2月
|
15
|
-
- 3月
|
16
|
-
- 4月
|
17
|
-
- 5月
|
18
|
-
- 6月
|
19
|
-
- 7月
|
20
|
-
- 8月
|
21
|
-
- 9月
|
22
|
-
- 10月
|
23
|
-
- 11月
|
24
|
-
- 12月
|
25
|
-
day_names:
|
26
|
-
- 星期日
|
27
|
-
- 星期一
|
28
|
-
- 星期二
|
29
|
-
- 星期三
|
30
|
-
- 星期四
|
31
|
-
- 星期五
|
32
|
-
- 星期六
|
33
|
-
formats:
|
34
|
-
default: ! '%Y-%m-%d'
|
35
|
-
long: ! '%Y年%b%d日'
|
36
|
-
short: ! '%b%d日'
|
37
|
-
month_names:
|
38
|
-
-
|
39
|
-
- 一月
|
40
|
-
- 二月
|
41
|
-
- 三月
|
42
|
-
- 四月
|
43
|
-
- 五月
|
44
|
-
- 六月
|
45
|
-
- 七月
|
46
|
-
- 八月
|
47
|
-
- 九月
|
48
|
-
- 十月
|
49
|
-
- 十一月
|
50
|
-
- 十二月
|
51
|
-
order:
|
52
|
-
- :year
|
53
|
-
- :month
|
54
|
-
- :day
|
55
|
-
datetime:
|
56
|
-
distance_in_words:
|
57
|
-
about_x_hours:
|
58
|
-
one: 大約一小時
|
59
|
-
other: 大約 %{count} 小時
|
60
|
-
about_x_months:
|
61
|
-
one: 大約一個月
|
62
|
-
other: 大約 %{count} 個月
|
63
|
-
about_x_years:
|
64
|
-
one: 大約一年
|
65
|
-
other: 大約 %{count} 年
|
66
|
-
almost_x_years:
|
67
|
-
one: 接近一年
|
68
|
-
other: 接近 %{count} 年
|
69
|
-
half_a_minute: 半分鐘
|
70
|
-
less_than_x_minutes:
|
71
|
-
one: 不到一分鐘
|
72
|
-
other: 不到 %{count} 分鐘
|
73
|
-
less_than_x_seconds:
|
74
|
-
one: 不到一秒
|
75
|
-
other: 不到 %{count} 秒
|
76
|
-
over_x_years:
|
77
|
-
one: 一年多
|
78
|
-
other: ! '%{count} 年多'
|
79
|
-
x_days:
|
80
|
-
one: 一天
|
81
|
-
other: ! '%{count} 天'
|
82
|
-
x_minutes:
|
83
|
-
one: 一分鐘
|
84
|
-
other: ! '%{count} 分鐘'
|
85
|
-
x_months:
|
86
|
-
one: 一個月
|
87
|
-
other: ! '%{count} 個月'
|
88
|
-
x_seconds:
|
89
|
-
one: 一秒
|
90
|
-
other: ! '%{count} 秒'
|
91
|
-
prompts:
|
92
|
-
day: 日
|
93
|
-
hour: 時
|
94
|
-
minute: 分
|
95
|
-
month: 月
|
96
|
-
second: 秒
|
97
|
-
year: 年
|
98
|
-
errors: &errors
|
99
|
-
format: ! '%{attribute} %{message}'
|
100
|
-
messages:
|
101
|
-
accepted: 必須是可被接受的
|
102
|
-
blank: 不能是空白字元
|
103
|
-
confirmation: 不符合確認值
|
104
|
-
empty: 不能留空
|
105
|
-
equal_to: 必須等於 %{count}
|
106
|
-
even: 必須是偶數
|
107
|
-
exclusion: 是被保留的關鍵字
|
108
|
-
greater_than: 必須大於 %{count}
|
109
|
-
greater_than_or_equal_to: 必須大於或等於 %{count}
|
110
|
-
inclusion: 沒有包含在列表中
|
111
|
-
invalid: 是無效的
|
112
|
-
less_than: 必須小於 %{count}
|
113
|
-
less_than_or_equal_to: 必須小於或等於 %{count}
|
114
|
-
not_a_number: 不是數字
|
115
|
-
not_an_integer: 必須是整數
|
116
|
-
odd: 必須是奇數
|
117
|
-
record_invalid: ! '校驗失敗: %{errors}'
|
118
|
-
taken: 已經被使用
|
119
|
-
too_long: 過長(最長是 %{count} 個字)
|
120
|
-
too_short: 過短(最短是 %{count} 個字)
|
121
|
-
wrong_length: 字數錯誤(必須是 %{count} 個字)
|
122
|
-
template:
|
123
|
-
body: 以下欄位發生問題:
|
124
|
-
header:
|
125
|
-
one: 有 1 個錯誤發生使得「%{model}」無法被儲存。
|
126
|
-
other: 有 %{count} 個錯誤發生使得「%{model}」無法被儲存。
|
127
|
-
helpers:
|
128
|
-
select:
|
129
|
-
prompt: 請選擇
|
130
|
-
submit:
|
131
|
-
create: 新增%{model}
|
132
|
-
submit: 儲存%{model}
|
133
|
-
update: 更新%{model}
|
134
|
-
number:
|
135
|
-
currency:
|
136
|
-
format:
|
137
|
-
delimiter: ! ','
|
138
|
-
format: ! '%u %n'
|
139
|
-
precision: 2
|
140
|
-
separator: .
|
141
|
-
significant: false
|
142
|
-
strip_insignificant_zeros: false
|
143
|
-
unit: NT$
|
144
|
-
format:
|
145
|
-
delimiter: ! ','
|
146
|
-
precision: 3
|
147
|
-
separator: .
|
148
|
-
significant: false
|
149
|
-
strip_insignificant_zeros: false
|
150
|
-
human:
|
151
|
-
decimal_units:
|
152
|
-
format: ! '%n %u'
|
153
|
-
units:
|
154
|
-
billion: 十億
|
155
|
-
million: 百萬
|
156
|
-
quadrillion: 千兆
|
157
|
-
thousand: 千
|
158
|
-
trillion: 兆
|
159
|
-
unit: ''
|
160
|
-
format:
|
161
|
-
delimiter: ''
|
162
|
-
precision: 1
|
163
|
-
significant: false
|
164
|
-
strip_insignificant_zeros: false
|
165
|
-
storage_units:
|
166
|
-
format: ! '%n %u'
|
167
|
-
units:
|
168
|
-
byte:
|
169
|
-
one: Byte
|
170
|
-
other: Bytes
|
171
|
-
gb: GB
|
172
|
-
kb: KB
|
173
|
-
mb: MB
|
174
|
-
tb: TB
|
175
|
-
percentage:
|
176
|
-
format:
|
177
|
-
delimiter: ''
|
178
|
-
precision:
|
179
|
-
format:
|
180
|
-
delimiter: ''
|
181
|
-
support:
|
182
|
-
array:
|
183
|
-
last_word_connector: ! ', 和 '
|
184
|
-
two_words_connector: ! ' 和 '
|
185
|
-
words_connector: ! ', '
|
186
|
-
time:
|
187
|
-
am: 上午
|
188
|
-
formats:
|
189
|
-
default: ! '%Y年%b%d日 %A %H:%M:%S %Z'
|
190
|
-
long: ! '%Y年%b%d日 %H:%M'
|
191
|
-
short: ! '%b%d日 %H:%M'
|
192
|
-
pm: 下午
|
193
|
-
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
194
|
-
activemodel:
|
195
|
-
errors:
|
196
|
-
<<: *errors
|
197
|
-
activerecord:
|
198
|
-
errors:
|
199
|
-
<<: *errors
|
data/template/Gemfile.erb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
<% if options["path"] %>
|
4
|
-
gem 'alula', path: '<%= options["path"] %>/alula'
|
5
|
-
gem 'alula-themes', path: '<%= options["path"] %>/alula-themes'
|
6
|
-
gem 'alula-plugins', path: '<%= options["path"] %>/alula-plugins'
|
7
|
-
<% elsif options["edge"] %>
|
8
|
-
gem 'alula', git: 'git://github.com/owlforestry/alula.git'
|
9
|
-
gem 'alula-themes', git: 'git://github.com/owlforestry/alula-themes.git'
|
10
|
-
gem 'alula-plugins', git: 'git://github.com/owlforestry/alula-plugins.git'
|
11
|
-
<% else %>
|
12
|
-
gem 'alula'
|
13
|
-
gem 'alula-themes'
|
14
|
-
gem 'alula-plugins'
|
15
|
-
<% end %>
|
data/template/README
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
Alula Blog
|
2
|
-
|
3
|
-
Directories:
|
4
|
-
|
5
|
-
- content/ This has blog contents, posts, pages, attachments
|
6
|
-
posts/ Put all posts here
|
7
|
-
pages/ Put all static pages here
|
8
|
-
static/ Put all files that needs to be just copied to public here
|
9
|
-
attachments/ Put all attachments, photos, videos here
|
10
|
-
- custom/ Blog customisation
|
11
|
-
stylesheets/ Custom stylesheets
|
12
|
-
custom.css Add your blog customisations here, you may use sprockets directives here
|
13
|
-
javascripts/ Custom javascripts, not yet implemented
|
14
|
-
images/ Custom images, fonts, etc.
|
15
|
-
- cache/ Contains generated content, it is a good idea to keep this around...
|
16
|
-
- public/ Contains your generated blog ready for publishing
|
data/template/config.yml.erb
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Alula Configuration File
|
3
|
-
#
|
4
|
-
# You set different values for different
|
5
|
-
# locales and environments if required for some options
|
6
|
-
#
|
7
|
-
# For example to localise title use following syntax
|
8
|
-
# title:
|
9
|
-
# en: Title in English
|
10
|
-
# fi: Otsikko suomeksi
|
11
|
-
#
|
12
|
-
# To have different options for different environments
|
13
|
-
# title:
|
14
|
-
# development: Title (development)
|
15
|
-
# production: Title
|
16
|
-
#
|
17
|
-
# To combine
|
18
|
-
# title:
|
19
|
-
# development:
|
20
|
-
# en: Title (development)
|
21
|
-
# fi: Otsikko (kehitysversio)
|
22
|
-
# production:
|
23
|
-
# en: Title
|
24
|
-
# fi: Otsikko
|
25
|
-
#
|
26
|
-
# Existing environments:
|
27
|
-
# - development => By default, when testing locally
|
28
|
-
# - production => Enabled when generating site with --production option
|
29
|
-
#
|
30
|
-
|
31
|
-
# OPTIONS
|
32
|
-
# Localisation and environments supported
|
33
|
-
title: The title for blog
|
34
|
-
tagline: The cathy tagline for your blog
|
35
|
-
author: You name
|
36
|
-
url:
|
37
|
-
development: http://0.0.0.0:3000
|
38
|
-
production: http://your.host.here
|
39
|
-
|
40
|
-
# Use paginated page as blog index
|
41
|
-
# This could be set to any slug of post or page to change default index page
|
42
|
-
index: page-1
|
@@ -1 +0,0 @@
|
|
1
|
-
This is invalid page without payload.
|
@@ -1 +0,0 @@
|
|
1
|
-
This is invalid post, i.e. not having payload.
|
@@ -1,20 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title:
|
3
|
-
en: Multilingual Post
|
4
|
-
fi: Monikielinen kirjoitelma
|
5
|
-
slug:
|
6
|
-
en: multilingual-post
|
7
|
-
fi: monikielinen-blogi-kirjoitelma
|
8
|
-
---
|
9
|
-
|
10
|
-
{% locale en %}
|
11
|
-
# Header
|
12
|
-
|
13
|
-
This is not a simple post.
|
14
|
-
{% endlocale %}
|
15
|
-
|
16
|
-
{% locale fi %}
|
17
|
-
# Otsikko
|
18
|
-
|
19
|
-
Tämä ei ole yksinkertainen kirjoitelma.
|
20
|
-
{% endlocale %}
|
@@ -1 +0,0 @@
|
|
1
|
-
<html><body><%= yield %></body></html>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= content %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<p><%= content %></p>
|
data/test/minitest_helper.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'simplecov'
|
2
|
-
SimpleCov.start do
|
3
|
-
# Skip support (from ActiveSupport)
|
4
|
-
add_filter "lib/alula/support/deep_merge.rb"
|
5
|
-
|
6
|
-
add_group "Gem", "lib/"
|
7
|
-
add_group "Tests", "test/"
|
8
|
-
end
|
9
|
-
|
10
|
-
require 'turn/autorun' unless ENV["DEBUG"]
|
11
|
-
require "minitest/autorun"
|
12
|
-
require "minitest/mock"
|
13
|
-
|
14
|
-
Turn.config.format = :outline unless ENV["DEBUG"]
|
data/test/test_config.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
require "minitest_helper"
|
2
|
-
require 'alula/config'
|
3
|
-
|
4
|
-
describe Alula::Config do
|
5
|
-
it "loads default config" do
|
6
|
-
config = Alula::Config.new()
|
7
|
-
|
8
|
-
config.title.must_equal "The Unnamed Blog"
|
9
|
-
config.url.must_equal "http://localhost:3000"
|
10
|
-
end
|
11
|
-
|
12
|
-
it "overrides given configurations" do
|
13
|
-
config = Alula::Config.new(title: "Overriden fun")
|
14
|
-
|
15
|
-
config.title.must_equal "Overriden fun"
|
16
|
-
config.url.must_equal "http://localhost:3000"
|
17
|
-
end
|
18
|
-
|
19
|
-
it "loads project configuration" do
|
20
|
-
config = Alula::Config.new({}, File.join("test/fixtures/config_001_simple.yml"))
|
21
|
-
|
22
|
-
config.title.must_equal "Yet Another Blog"
|
23
|
-
config.url.must_equal "http://localhost:3000"
|
24
|
-
end
|
25
|
-
|
26
|
-
it "loads project configuration with overrides" do
|
27
|
-
config = Alula::Config.new({url: "http://lvh.me:3000"}, File.join("test/fixtures/config_001_simple.yml"))
|
28
|
-
|
29
|
-
config.title.must_equal "Yet Another Blog"
|
30
|
-
config.url.must_equal "http://lvh.me:3000"
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
data/test/test_content.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
require "minitest_helper"
|
2
|
-
require 'alula/content'
|
3
|
-
|
4
|
-
describe "Content" do
|
5
|
-
before do
|
6
|
-
@site = MiniTest::Mock.new
|
7
|
-
|
8
|
-
item = MiniTest::Mock.new
|
9
|
-
item.expect :nil?, false
|
10
|
-
item.expect :exists?, true
|
11
|
-
item.expect :has_payload?, true
|
12
|
-
item.expect :name, "item"
|
13
|
-
item.expect :read, ""
|
14
|
-
|
15
|
-
storage = MiniTest::Mock.new
|
16
|
-
storage.expect :posts, { "item" => item }
|
17
|
-
storage.expect :pages, { "item" => item }
|
18
|
-
storage.expect :attachments, { "item" => item }
|
19
|
-
@site.expect :storage, storage
|
20
|
-
end
|
21
|
-
|
22
|
-
it "loads site content" do
|
23
|
-
@content = Alula::Content.new(site: @site)
|
24
|
-
@content.load
|
25
|
-
|
26
|
-
@content.pages.count.must_equal 1
|
27
|
-
@content.posts.count.must_equal 1
|
28
|
-
@content.attachments.count.must_equal 1
|
29
|
-
end
|
30
|
-
end
|