OODoc::Format::Pod2 - Produce POD pages from the doc tree with a template
OODoc::Format::Pod2 is a OODoc::Format::Pod is a OODoc::Format is a OODoc::Object
my $doc = OODoc->new(...); $doc->create ( 'pod2' # or 'OODoc::Format::Pod2' , format_options => [show_examples => 'NO'] );
Create manual pages in the POD syntax, using the Template::Magic template system. It may be a bit simpler to configure the outcome using the template, than using OODoc::Format::Pod, however you first need to install Bundle::Template::Magic.
OODoc::Format::Pod2->new(OPTIONS)
See "METHODS" in OODoc::Format
$obj->extends([OBJECT])
See "Inheritance knowledge" in OODoc::Object
$obj->manifest
See "Attributes" in OODoc::Format
$obj->project
$obj->version
$obj->workdir
$obj->chapterInheritance(OPTIONS)
See "Page generation" in OODoc::Format::Pod
$obj->cleanup(MANUAL, STRING)
See "Page generation" in OODoc::Format
$obj->createInheritance(MANUAL)
$obj->createManual(OPTIONS)
Option Defined in Default append L<OODoc::Format::Pod> '' format_options L<OODoc::Format> [] manual L<OODoc::Format> <required> project L<OODoc::Format> <required> template <in code>
. append STRING|CODE
. format_options ARRAY
. manual MANUAL
. project STRING
. template FILENAME
The default template is included in the DATA segment of OODoc::Format::Pod2. You may start your own template by copying it to a file.
$obj->createOtherPages(OPTIONS)
$obj->formatManual(OPTIONS)
$obj->link(MANUAL, OBJECT, [TEXT])
$obj->showChapter(OPTIONS)
$obj->showChapterIndex(FILE, CHAPTER, INDENT)
$obj->showExamples(OPTIONS)
$obj->showOptionExpand(OPTIONS)
$obj->showOptionTable(OPTIONS)
$obj->showOptionUse(OPTIONS)
$obj->showOptionalChapter(NAME, OPTIONS)
$obj->showOptions(OPTIONS)
$obj->showRequiredChapter(NAME, OPTIONS)
$obj->showStructureExpanded(OPTIONS)
$obj->showStructureRefer(OPTIONS)
$obj->showSubroutine((@))
$obj->showSubroutineDescription(OPTIONS)
$obj->showSubroutineName(OPTIONS)
$obj->showSubroutineUse(OPTIONS)
$obj->showSubroutines(OPTIONS)
$obj->writeTable
$obj->zoneGetParameters(ZONE|STRING)
See "Template::Magic" in OODoc::Format
$obj->templateChapter
$obj->filenameToPackage(FILENAME)
OODoc::Format::Pod2->filenameToPackage(FILENAME)
See "Commonly used functions" in OODoc::Object
$obj->mkdirhier(DIRECTORY)
OODoc::Format::Pod2->mkdirhier(DIRECTORY)
$obj->addManual(MANUAL)
See "Manual Repository" in OODoc::Object
$obj->mainManual(NAME)
$obj->manual(NAME)
$obj->manuals
$obj->manualsForPackage(NAME)
$obj->packageNames
Error: chapter without name in template.
In your template file, a {chapter} statement is used, which is erroneous, because it requires a chapter name.
Error: formatter does not know the version.
Error: formatter has no project name.
A formatter was created without a name specified for the project at hand. This should be passed with new(project).
Error: manual definition requires manual object
A call to addManual() expects a new manual object (a OODoc::Manual), however an incompatible thing was passed. Usually, intended was a call to manualsForPackage() or mainManual().
Warning: missing required chapter $name in $manual
Error: no directory to put pod manual for $name in
Warning: no meaning for container $container in chapter block
Error: no package name for pod production
Error: no working directory specified.
The formatter has to know where the output can be written. This directory must be provided via new(workdir), but was not specified.
Warning: unknown subroutine type $type for $name in $manual
See the OODoc website at http://perl.overmeer.net/oodoc/ for more details.
Module version 0.10. Written by Mark Overmeer (mark@overmeer.net). See the ChangeLog for other contributors.
Copyright (c) 2003 by the author(s). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install OODoc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OODoc
CPAN shell
perl -MCPAN -e shell install OODoc
For more information on module installation, please visit the detailed CPAN module installation guide.