forked from ruby/TryRuby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
49 lines (37 loc) · 936 Bytes
/
config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
system "clear"
require 'bundler'
Bundler.require
# Enable the collector extension, used to create
# try_ruby_<language>.json files
require 'collector'
activate :collector
set :markdown_engine, :redcarpet
set :markdown, :layout_engine => :haml,
:fenced_code_blocks => true,
:lax_html_blocks => true,
:smartypants => true
# Prevent code blocks indentation problem
set :haml, { ugly: true }
activate :syntax
activate :sprockets
activate :blog do |blog|
blog.publish_future_dated = true
blog.prefix = "articles"
blog.permalink = "{title}.html"
end
activate :directory_indexes
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
after_configuration do
Opal.paths.each do |p|
sprockets.append_path p
end
end
configure :development do
set :debug_assets, true
activate :livereload
end
configure :build do
activate :minify_css
activate :minify_javascript
end