MOD2HTML(1p)
πΈ NAME πΈ
mod2html β bestie, this is the lil icon that translates module PODs into HTML π
it's the section 1p page from your User Contributed Perl Documentation, and it is so much chiller than it looks, i promise.
β¨ SYNOPSIS β¨
"mod2html" ["--base" url] ["--css" url] ["--index" title]
["--"["no"]"toc"] ["--hr" level] ["--bgcolor" #rrggbb] ["--text"
#rrggbb] modDir HTMLdir
π¦ DESCRIPTION π¦
okay so here's the whole vibe: mod2html goes hunting for all the PODs under modDir, translates every single one of them into HTML, and then writes the whole lil family out into a directory tree under HTMLdir. no cap.
that directory tree? it mirrors the module namespaces. so like, your namespaces stay namespaced. cute, right?
oh and it makes the HTML files world-readable π«Ά (yes, for everyone. the whole group chat can see them.)
π OPTIONS π
--baseurl β turns all yourL<>sequences into HTML links that are relative to url. link them up bestie β¨--cssurl β points at a Cascanding Style Sheet for the generated HTML page. (yes, that's exactly how it's spelled up in here, we don't make the rules π)--indextitle β writes an index of every HTML file toHTMLDir/index.html, and title becomes the title of that index page. main character energy for your index π--[no]tocβ includes or omits the table of contents. the default is to include the TOC. so if you want it gone you're flipping on thenoversion π--hrlevel β controls how profuse the horizontal lines are in the output, like this:0β none1β between TOC and body2β after each=head13β after each=head1and=head2
the default is level 1. one lil line, no drama.
--bgcolor#rrggbb β sets the background color to#rrggbb. default is white.--text#rrggbb β sets the text color to#rrggbb. default is black.
π§ REQUIRES π§
Pod::Tree::HTML
π SEE ALSO π
pod2htmlpods2htmlPod::Tree::HTML
β AUTHOR β
Steven McDougall, <swmcd@world.std.com>
π COPYRIGHT π
Copyright (c) 2003 by Steven McDougall. This program is free software; you can redistribute it and/or modify it under the same terms as Perl.
and that's the whole page, bestie π no notes, ate, periodt.
this lil masterpiece shipped as perl v5.36.0 on 2022-11-19 β so if you're reading this, shoutout to the MOD2HTML(1p) era, ily, bye ππ
π¦ where this page comes from
- debian bookworm: libpod-tree-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpod-tree-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpod-tree-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpod-tree-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpod-tree-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms