Pod::ProjectDocs(3pm)

Pod::ProjectDocs3pm

Generates cpan like project documents from pod.

Usage

    #!/usr/bin/perl
    use strict;
    use warnings;
    use Pod::ProjectDocs;
    my $pd = Pod::ProjectDocs->new(
        libroot => '/your/project/lib/root',
        outroot => '/output/directory',
        title   => 'ProjectName',
    );
    $pd->gen();
    # or use pod2projdocs on your shell
    pod2projdocs -out /output/directory -lib /your/project/lib/root

Overview

This module allows you to generates CPAN like pod pages from your modules for your projects. It also creates an optional index page.

Options

"outroot"

output directory for the generated documentation.

"libroot"

your library's (source code) root directory.

You can set single path by string, or multiple by arrayref.

    my $pd = Pod::ProjectDocs->new(
        outroot => '/path/to/output/directory',
        libroot => '/path/to/lib'
    );

or

    my $pd = Pod::ProjectDocs->new(
        outroot => '/path/to/output/directory',
        libroot => ['/path/to/lib1', '/path/to/lib2'],
    );
"title"

your project's name.

"desc"

description for your project.

"index"

whether you want to create an index for all generated pages (0 or 1).

"lang"

set this language as xml:lang (default 'en')

"forcegen"

whether you want to generate HTML document even if source files are not updated (default is 0).

"nosourcecode"

whether to suppress inclusion of the original source code in the generated output (default is 0).

"except"

the files matches this regex won't be parsed.

  Pod::ProjectDocs->new(
    except => qr/^specific_dir\//,
    ...other parameters
  );
  Pod::ProjectDocs->new(
    except => [qr/^specific_dir1\//, qr/^specific_dir2\//],
    ...other parameters
  );

pod2projdocs

You can use the command line script pod2projdocs to generate your documentation without creating a custom perl script.

    pod2projdocs -help

Releases

4 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10
  2. 11–13

Authors

Lyo Kato <[email protected]>
Martin Gruner <https://github.com/mgruner> (current maintainer)

From libpod-projectdocs-perl 0.53-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.