Skip to content

Commit

Permalink
fix site creator to use plugins not event handler
Browse files Browse the repository at this point in the history
We should likely downplay the event handlers from now on.
  • Loading branch information
preaction committed Jan 2, 2016
1 parent fb8e940 commit cc87fd2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
11 changes: 6 additions & 5 deletions share/create/site.yml
Expand Up @@ -29,11 +29,6 @@
site:
class: 'Statocles::Site'

on:
- build:
$class: 'Statocles::Plugin::LinkCheck'
$sub: 'check_pages'

args:

# title: This is the title of the site, shown in the <title> tag
Expand Down Expand Up @@ -64,6 +59,12 @@ site:
static:
$ref: 'static_app'

# plugins: These are plugins that can add features and alter the
# content of the site.
plugins:
link_check:
$class: 'Statocles::Plugin::LinkCheck'

# theme: The theme builds and manages the templates. Use themes to
# change how your site looks.
theme:
Expand Down
9 changes: 3 additions & 6 deletions t/command/create.t
Expand Up @@ -415,15 +415,12 @@ sub site_config {
},
index => '/blog',
deploy => { '$ref' => 'deploy' },
},
on => [
{
build => {
plugins => {
link_check => {
'$class' => 'Statocles::Plugin::LinkCheck',
'$sub' => 'check_pages',
},
},
],
},
},

blog_app => {
Expand Down

0 comments on commit cc87fd2

Please sign in to comment.