/
init.rb
18 lines (16 loc) · 923 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# = webgen extensions directory
#
# All init.rb files anywhere under this directory get automatically loaded on a webgen run. This
# allows you to add your own extensions to webgen or to modify webgen's core!
#
# If you don't need this feature you can savely delete this file and the directory in which it is!
#
# The +config+ variable below can be used to access the Webgen::Configuration object for the current
# website.
config = Webgen::WebsiteAccess.website.config
config['sourcehandler.patterns']['Webgen::SourceHandler::Copy'] << '**/*.eot'
config['sourcehandler.patterns']['Webgen::SourceHandler::Copy'] << '**/*.woff'
config['sourcehandler.patterns']['Webgen::SourceHandler::Copy'] << '**/*.otf'
config['sourcehandler.patterns']['Webgen::SourceHandler::Copy'] << '**/*.ttf'
config['sourcehandler.patterns']['Webgen::SourceHandler::Copy'] << '**/*.svg'
config['output'] = ["Webgen::Output::FileSystem", "public"]