forked from openshift-cs/projectquay.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rb
46 lines (39 loc) · 825 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
###
# Settings
###
set :site_title, "OKD"
set :site_url, 'https://www.okd.io/'
set :openshift_assets, 'https://assets.openshift.net/content'
###
# Assets
###
set :css_dir, 'css'
set :fonts_dir, 'fonts'
set :images_dir, 'img'
set :js_dir, 'js'
###
# Page command
###
page "/sitemap.xml", layout: false
###
# Extra Helpers
###
helpers do
def label_to_name(label)
label.downcase.gsub(" ","_")
end
end
#ignore accelerators page(s)
ignore 'accelerators/*'
# Development-specific configuration
configure :development do
activate :php
end
# Build-specific configuration
configure :build do
config.ignored_sitemap_matchers[:source_dotfiles] = proc { |file|
file =~ %r{/\.} && file !~ %r{/\.(s2i|openshift|htaccess|htpasswd|nojekyll|git)|containers}
}
activate :minify_css
activate :minify_javascript
end