Pod::P...odules(3pm)
π Pod::Pandoc::Modules β bestie edition π
okay so this is the Pod::Pandoc::Modules page from the User Contributed Perl Documentation corner of the perl 3pm manuals, and babes, it's literally a set of parsed documentation of Perl modules. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
Pod::Pandoc::Modules β a whole lil squad 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
not the stray ] in there π but no cap, that's literally what the page says, so we're keeping it character for character. it's giving "TODO", and honestly, same.
π¦ DESCRIPTION π¦
so this module serializes Pod from a set of parsed Perl or Pod files. it can be configured via templates, document rewriting, etc. β and it plays nice with so many output formats: html, markdown, and rst, all ready to be embedded in static site generators like Jekyll. obsessed actually β¨
if you wanna know how to create instances of this module, go check Pod::Simple::Pandoc. iykyk π
π METHODS π
π add( $name => $doc )
add a module given as Pandoc::Document β but only unless a module of the same $name already exists. β no duplicates in this house.
exception alert π¨: a parsed .pod file will override existing entries. it's just built different.
the document title gets set to the module name if it's missing. so like, it names itself. main character energy fr fr π
π serialize ( [ $dir ] [, \%options ] [, @args ] )
serialize a set of modules into a given directory. that's the whole vibe.
β οΈ This method is experimental and may change! do not get attached. i'm serious. it said it, not me. π
here's the rundown of the options, bestie:
dirβ output directory. where the files go. πextβ output file extension. it defaults to the value offormat, slay.indexβ index filename, with or without extension. defaults toindex. set it to a false value to disable index generation entirely. no index, no problem. πwikiβ don't create subdirectories, and use wiki links for references between files instead. flat and cute. π§updateβ generate target files even if the source files have not been updated. force it. π₯quietβ don't emit warnings and status information. silence. π€«
π index ( %options )
create and return an index document as a Pandoc::Document. that's it, that's the method. short and iconic. β
π SEE ALSO π
this module is part of Pod::Pandoc. one big happy family π
and that's the whole page, bestie!! mwah π this was written up for perl v5.32.1 on 2022-01-20, so if you're reading this from the future... hi. hope perl is still slaying. π«Άβ¨
π¦ where this page comes from
- debian bookworm: libpod-pandoc-perl 0.5.0-3 Β· GPL-2.0-only
- debian trixie: libpod-pandoc-perl 0.5.0-3 Β· GPL-2.0-only
- ubuntu jammy: libpod-pandoc-perl 0.5.0-3 Β· GPL-2.0-only
- ubuntu noble: libpod-pandoc-perl 0.5.0-3 Β· GPL-2.0-only
- ubuntu resolute: libpod-pandoc-perl 0.5.0-3 Β· GPL-2.0-only
- ubuntu stonking: libpod-pandoc-perl 0.5.0-3 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms