NAME

Statocles::Plugin::LinkCheck - Check links and images for validity during build

VERSION

version 0.056

SYNOPSIS

    # site.yml
    site:
        class: Statocles::Site
        on:
            - build:
                $class: Statocles::Plugin::LinkCheck
                $method: check_pages

DESCRIPTION

This plugin checks all of the links and images to ensure they exist. If something is missing, this plugin will write a warning to the screen.

ATTRIBUTES

ignore

An array of URL patterns to ignore. These are interpreted as regular expressions, and are anchored to the beginning of the URL.

For example:

    /broken     will match "/broken.html" "/broken/page.html" but not "/page/broken"
    .*/broken   will match "/broken.html" "/broken/page.html" and "/page/broken"

METHODS

check_pages

    $plugin->check_pages( $event );

Check the pages inside the given Statocles::Event::Pages event.

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Doug Bell.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.