package Catalyst::Helper::Doc;
use strict;
use warnings;
use File::Spec;
use Pod::ProjectDocs;

our $VERSION = '0.04';

sub mk_stuff {
  my ( $class, $helper, $desc, $lang, $charset ) = @_;
  my $doc_dir = File::Spec->catfile( $helper->{base}, 'doc' );
  my $lib_dir = File::Spec->catfile( $helper->{base}, 'lib' );
    title   => $helper->{app},
    outroot => $doc_dir,
    libroot => $lib_dir,
    desc    => $desc    || 'Catalyst based application',
    charset => $charset || 'UTF-8',
    lang    => $lang    || 'en',


=head1 NAME

Catalyst::Helper::Doc - documentation page generator.


  # execute helper script.
  script/ Doc

  # you can set description
  # default is "Catalyst based application"

  script/ Doc "This is description!"

  # you can set language type used as xml:lang. defualt is "en"
  script/ Doc "This is description!" ja

  # you also can set charset, default is UTF-8
  script/ Doc "This is description!" ja EUC-JP


This module allows you to parse your libraries POD, and generate documentation like pages in,

Execute according to SYNOPSIS, and 'doc' directory will be created, and documentation will be put into it.

=head1 SEE ALSO


=head1 AUTHOR

Lyo Kato E<lt>lyo.kato@gmail.comE<gt>


Copyright (C) 2005 by Lyo Kato

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.5 or,
at your option, any later version of Perl 5 you may have available.