-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfig.rb
74 lines (57 loc) · 1.98 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
require "sass-getunicode"
require 'redcarpet'
require 'active_support/core_ext'
Dir['./lib/*'].each { |f| require f }
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
set :markdown_engine, :redcarpet
set :markdown, :fenced_code_blocks => true,
:gh_blockcode => true,
:tables => true,
:autolink => true,
:smartypants => true,
:no_intra_emphasis => true,
:pattern => '```',
:renderer => CodeRenderer
# activate :livereload
activate :directory_indexes
activate :markdown_navigation
activate :array_navigation
# page "/extensions*", layout: 'layouts/default'
page "/", layout: 'layouts/landing'
page "/about", layout: 'layouts/default'
page "/getting-started*", layout: 'layouts/default'
page "/faq*", layout: 'layouts/default'
page "/api*", layout: 'layouts/default'
# page "/resources", layout: 'layouts/default'
page "/examples*", layout: 'layouts/default'
page "/guides*", layout: 'layouts/blog'
page "/sitemap.xml", :layout => false
activate :highlighter
activate :api_docs,
default_class: 'Aura',
repo_url: 'https://github.com/aurajs/aura'
######
# Blog
######
activate :blog do |blog|
blog.prefix = 'guides'
blog.layout = 'layouts/blog'
end
page '/guides/feed.xml', layout: false
################################################################################
# Sass Configuration
################################################################################
require 'lib/retina.rb'
require 'lib/random-color.rb'
Sass::Script::Number.precision = 20
configure :build do
activate :minify_css
activate :minify_javascript
activate :cache_buster
activate :gzip
set :logging, true
end
# if development?
use RackEnvironment, :file => 'environment.yml' if File.exist?('./environment.yml')