-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.rb
42 lines (33 loc) · 991 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
# Site structure
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
set :layouts_dir, 'layouts'
set :build_dir, 'public'
# Page-specific layouts
# No layout
# page "/path/to/file.html", layout: false
#
# Alternative layout
# page "/path/to/file.html", layout: :otherlayout
#
# Set layout for pages by pattern
# with_layout :admin do
# page "/admin/*"
# end
# Configure Slim
set :slim, format: :html, sort_attrs: false, pretty: true, disable_escape: true
autoload :Asciidoctor, 'asciidoctor'
require 'slim/include'
# Configure AsciiDoc extension
activate :asciidoc, {
safe: :safe,
template_dirs: 'source/_templates',
attributes: %W(idprefix=_ idseparator=- sectanchors=after icons=font source-highlighter=coderay coderay-css=style showtitle)
}
# Configure URLs
activate :directory_indexes
# NOTE: The `server` command defaults to the :development environment.
configure :development do
activate :livereload if ENV['LIVE_RELOAD'] == 'true'
end