Scroll to navigation

Pod::Pandoc::Modules(3pm) User Contributed Perl Documentation Pod::Pandoc::Modules(3pm)

NAME

Pod::Pandoc::Modules - set of parsed documentation of Perl modules

SYNOPSIS

  use Pod::Simple::Pandoc;
  my $modules = Pod::Simple::Pandoc->new->parse_modules('lib');
  $modules->serialize( { target => 'doc' }, '--template' => '...' ] ); # TODO

DESCRIPTION

Module to serialize Pod from a set of parsed Perl or Pod files. Can beconfigured via templates, document rewriting etc. and used with many outputformats (html, markdown, and rst to be embedded in static site generators suchas Jekyll).

See Pod::Simple::Pandoc for how to create instances of this module.

METHODS

add( $name => $doc )

Add a module given as Pandoc::Document unless a module of same $name already exists. As an exception a parsed .pod file will override existing entries. The document title is set to the module name if missing.

serialize ( [ $dir ] [, \%options ] [, @args ] )

Serialize a set of modules into a given directory.

This method is experimental and may change!

Output directory.
Output file extension. Set to the value of "format" by default.
Index filename (with or without extension). Set to "index" by default. Use a false value to disable index generation.
Don't create subdirectories and use wiki links for references between files.instead.
Generate target files even if source files have not been updated.
Don't emit warnings and status information.

index ( %options )

Create and return an index document as Pandoc::Document.

SEE ALSO

This module is part of Pod::Pandoc.

2022-01-20 perl v5.32.1