xref: /openbsd/gnu/usr.bin/perl/ext/Pod-Html/bin/pod2html (revision e0680481)
1898184e3Ssthen=pod
2898184e3Ssthen
3898184e3Ssthen=head1 NAME
4898184e3Ssthen
5898184e3Ssthenpod2html - convert .pod files to .html files
6898184e3Ssthen
7898184e3Ssthen=head1 SYNOPSIS
8898184e3Ssthen
96fb12b70Safresh1    pod2html --help --htmldir=<name> --htmlroot=<URL>
106fb12b70Safresh1             --infile=<name> --outfile=<name>
11898184e3Ssthen             --podpath=<name>:...:<name> --podroot=<name>
126fb12b70Safresh1             --cachedir=<name> --flush --recurse --norecurse
136fb12b70Safresh1             --quiet --noquiet --verbose --noverbose
146fb12b70Safresh1             --index --noindex --backlink --nobacklink
156fb12b70Safresh1             --header --noheader --poderrors --nopoderrors
166fb12b70Safresh1             --css=<URL> --title=<name>
17898184e3Ssthen
18898184e3Ssthen=head1 DESCRIPTION
19898184e3Ssthen
20898184e3SsthenConverts files from pod format (see L<perlpod>) to HTML format.
21898184e3Ssthen
22898184e3Ssthen=head1 ARGUMENTS
23898184e3Ssthen
24898184e3Ssthenpod2html takes the following arguments:
25898184e3Ssthen
26898184e3Ssthen=over 4
27898184e3Ssthen
28*e0680481Safresh1=item backlink
29*e0680481Safresh1
30*e0680481Safresh1  --backlink
31*e0680481Safresh1  --nobacklink
32*e0680481Safresh1
33*e0680481Safresh1Turn =head1 directives into links pointing to the top of the HTML file.
34*e0680481Safresh1--nobacklink (which is the default behavior) does not create these backlinks.
35*e0680481Safresh1
36*e0680481Safresh1=item cachedir
37*e0680481Safresh1
38*e0680481Safresh1  --cachedir=name
39*e0680481Safresh1
40*e0680481Safresh1Specify which directory is used for storing cache. Default directory is the
41*e0680481Safresh1current working directory.
42*e0680481Safresh1
43*e0680481Safresh1=item css
44*e0680481Safresh1
45*e0680481Safresh1  --css=URL
46*e0680481Safresh1
47*e0680481Safresh1Specify the URL of cascading style sheet to link from resulting HTML file.
48*e0680481Safresh1Default is none style sheet.
49*e0680481Safresh1
50*e0680481Safresh1=item flush
51*e0680481Safresh1
52*e0680481Safresh1  --flush
53*e0680481Safresh1
54*e0680481Safresh1Flush the cache.
55*e0680481Safresh1
56*e0680481Safresh1=item header
57*e0680481Safresh1
58*e0680481Safresh1  --header
59*e0680481Safresh1  --noheader
60*e0680481Safresh1
61*e0680481Safresh1Create header and footer blocks containing the text of the "NAME" section.
62*e0680481Safresh1--noheader -- which is the default behavior -- does not create header or footer
63*e0680481Safresh1blocks.
64*e0680481Safresh1
65898184e3Ssthen=item help
66898184e3Ssthen
67898184e3Ssthen  --help
68898184e3Ssthen
69898184e3SsthenDisplays the usage message.
70898184e3Ssthen
716fb12b70Safresh1=item htmldir
726fb12b70Safresh1
736fb12b70Safresh1  --htmldir=name
746fb12b70Safresh1
756fb12b70Safresh1Sets the directory to which all cross references in the resulting HTML file
766fb12b70Safresh1will be relative. Not passing this causes all links to be absolute since this
776fb12b70Safresh1is the value that tells Pod::Html the root of the documentation tree.
786fb12b70Safresh1
796fb12b70Safresh1Do not use this and --htmlroot in the same call to pod2html; they are mutually
806fb12b70Safresh1exclusive.
816fb12b70Safresh1
82898184e3Ssthen=item htmlroot
83898184e3Ssthen
846fb12b70Safresh1  --htmlroot=URL
85898184e3Ssthen
866fb12b70Safresh1Sets the base URL for the HTML files.  When cross-references are made, the
876fb12b70Safresh1HTML root is prepended to the URL.
886fb12b70Safresh1
896fb12b70Safresh1Do not use this if relative links are desired: use --htmldir instead.
906fb12b70Safresh1
916fb12b70Safresh1Do not pass both this and --htmldir to pod2html; they are mutually exclusive.
92898184e3Ssthen
93*e0680481Safresh1=item index
94*e0680481Safresh1
95*e0680481Safresh1  --index
96*e0680481Safresh1
97*e0680481Safresh1Generate an index at the top of the HTML file (default behaviour).
98*e0680481Safresh1
99*e0680481Safresh1=over 4
100*e0680481Safresh1
101*e0680481Safresh1=item noindex
102*e0680481Safresh1
103*e0680481Safresh1  --noindex
104*e0680481Safresh1
105*e0680481Safresh1Do not generate an index at the top of the HTML file.
106*e0680481Safresh1
107*e0680481Safresh1=back
108*e0680481Safresh1
109898184e3Ssthen=item infile
110898184e3Ssthen
111898184e3Ssthen  --infile=name
112898184e3Ssthen
113898184e3SsthenSpecify the pod file to convert.  Input is taken from STDIN if no
114898184e3Sstheninfile is specified.
115898184e3Ssthen
116898184e3Ssthen=item outfile
117898184e3Ssthen
118898184e3Ssthen  --outfile=name
119898184e3Ssthen
120898184e3SsthenSpecify the HTML file to create.  Output goes to STDOUT if no outfile
121898184e3Ssthenis specified.
122898184e3Ssthen
123*e0680481Safresh1=item poderrors
124898184e3Ssthen
125*e0680481Safresh1  --poderrors
126*e0680481Safresh1  --nopoderrors
127898184e3Ssthen
128*e0680481Safresh1Include a "POD ERRORS" section in the outfile if there were any POD errors in
129*e0680481Safresh1the infile (default behaviour).  --nopoderrors does not create this "POD
130*e0680481Safresh1ERRORS" section.
131898184e3Ssthen
132898184e3Ssthen=item podpath
133898184e3Ssthen
134898184e3Ssthen  --podpath=name:...:name
135898184e3Ssthen
136898184e3SsthenSpecify which subdirectories of the podroot contain pod files whose
137898184e3SsthenHTML converted forms can be linked-to in cross-references.
138898184e3Ssthen
139*e0680481Safresh1=item podroot
1406fb12b70Safresh1
141*e0680481Safresh1  --podroot=name
1426fb12b70Safresh1
143*e0680481Safresh1Specify the base directory for finding library pods.
1446fb12b70Safresh1
145*e0680481Safresh1=item quiet
1466fb12b70Safresh1
147*e0680481Safresh1  --quiet
148*e0680481Safresh1  --noquiet
1496fb12b70Safresh1
150*e0680481Safresh1Don't display mostly harmless warning messages.  --noquiet -- which is the
151*e0680481Safresh1default behavior -- I<does> display these mostly harmless warning messages (but
152*e0680481Safresh1this is not the same as "verbose" mode).
153898184e3Ssthen
154898184e3Ssthen=item recurse
155898184e3Ssthen
156898184e3Ssthen  --recurse
157898184e3Ssthen  --norecurse
158898184e3Ssthen
159*e0680481Safresh1Recurse into subdirectories specified in podpath (default behaviour).
160*e0680481Safresh1--norecurse does not recurse into these subdirectories.
1616fb12b70Safresh1
162898184e3Ssthen=item title
163898184e3Ssthen
164898184e3Ssthen  --title=title
165898184e3Ssthen
166898184e3SsthenSpecify the title of the resulting HTML file.
167898184e3Ssthen
168898184e3Ssthen=item verbose
169898184e3Ssthen
170898184e3Ssthen  --verbose
1716fb12b70Safresh1  --noverbose
1726fb12b70Safresh1
173*e0680481Safresh1Display progress messages. --noverbose -- which is the default behavior --
174*e0680481Safresh1does not display these progress messages.
1756fb12b70Safresh1
176898184e3Ssthen=back
177898184e3Ssthen
178898184e3Ssthen=head1 AUTHOR
179898184e3Ssthen
180898184e3SsthenTom Christiansen, E<lt>tchrist@perl.comE<gt>.
181898184e3Ssthen
182898184e3Ssthen=head1 BUGS
183898184e3Ssthen
184898184e3SsthenSee L<Pod::Html> for a list of known bugs in the translator.
185898184e3Ssthen
186898184e3Ssthen=head1 SEE ALSO
187898184e3Ssthen
188898184e3SsthenL<perlpod>, L<Pod::Html>
189898184e3Ssthen
190898184e3Ssthen=head1 COPYRIGHT
191898184e3Ssthen
192898184e3SsthenThis program is distributed under the Artistic License.
193898184e3Ssthen
194898184e3Ssthen=cut
195898184e3Ssthen
1960b7734b3Safresh1BEGIN { pop @INC if $INC[-1] eq '.' }
197898184e3Ssthenuse Pod::Html;
198898184e3Ssthen
199898184e3Ssthenpod2html @ARGV;
200