documentation_project/config.rb in middleman-targets-1.0.3 vs documentation_project/config.rb in middleman-targets-1.0.4
- old
+ new
@@ -21,11 +21,11 @@
activate :MiddlemanTargets
# Set the default target. This is the target that is used automatically
# when you `middleman build` or `middleman server` without using the
# `targets` CLI option.
-set :target, :pro
+config[:target] = :pro
# Setup your targets and their features. You can use any target names and
# feature names that you like, but keep in mind that the key :features is
# required for each of your targets.
#
@@ -35,11 +35,11 @@
# will be filled with the target name.
#
# You can add your own keys to each target for your own uses; the
# `sample_key` below is an example of such. The generic `target_value()`
# helper can retrieve these values, or you can write your own helpers.
-set :targets, {
+config[:targets] = {
:free =>
{
:sample_key => 'People who use free versions don\'t drive profits.',
:build_dir => 'build (%s)',
:features =>
@@ -69,25 +69,25 @@
# be used in your :pro target instead.
#
# Important: when this is enabled, images from *other* targets will *not* be
# included in the build! In the example above, *any* image prefixed with "free-"
# would not be included in the output directory.
-set :target_magic_images, true
-set :target_magic_word, 'all'
+config[:target_magic_images] = true
+config[:target_magic_word] = 'all'
# Note that output will now use this directory as a *prefix*; if the target
# is :pro, then the actual build directory will be `build (pro)/`. If the
# build_dir key is present for any of the :targets, they will override this
# setting.
-set :build_dir, 'build'
+config[:build_dir] = 'build'
#==========================================================================
# Regular Middleman Setup
#==========================================================================
-set :relative_links, true
+config[:relative_links] = true
activate :syntax
#==========================================================================
# Helpers
@@ -101,10 +101,10 @@
def product_name
'middleman-targets'
end
def product_version
- '1.0.3'
+ '1.0.4'
end
def product_uri
'https://github.com/middlemac'
end