Help language development. Donate to The Perl Foundation

Pod::To::HTML::Section cpan:TYIL last updated on 2020-01-17

=begin pod

=NAME    Pod::To::HTML
=AUTHOR  Patrick Spek <[email protected]>
=VERSION 0.0.0

=head1 Synopsis

=begin code
raku --doc=HTML::Section <document>
=end code

=head1 Description

Convert a Pod6 document to HTMLN<Well, just a I<section> of it, really>.

=head1 Installation

=head2 Through C<zef>

L<zef|> is the standard distribution manager for
L<Raku|>. If you're using an end-user distribution like
L<Rakudo Star|>, it will be installed for you by

C<zef> will install the latest available version from

=begin code :lang<sh>
zef install Pod::To::HTML::Section
=end code

=head2 From a downloaded distribution

All official releases are also made available on my L<personal distribution
server|>. These can be installed from the URL

=begin code :lang<sh>
zef install
=end code

Alternatively, you can download the distribution first, and then install that
copy with C<zef>.

=begin code :lang<sh>
zef install ./Pod-To-HTML-Section-0.1.0.tar.gz
=end code

=head1 Contributing

=head2 Reporting bugs or other feedback

Any bugs or other feedback can be sent to my email address. I generally try to
respond to all mail within 24 hours.

=head2 Proposing code patches

Code patches can also be sent in through email. If you need help to send git
patches through email, you may want to read up on

=head3 Testing

If you're working on a code patch, you will more than likely want to test your
own changes to see if they're solving your issue. The easiest way to get the
HTML out on your terminal is to specify your development copy with C<-I> to
give it priority, and using C<raku --doc> as usual.

=begin input
raku -Ilib --doc=HTML::Section <document>
=end input

However, this may be hard to read for most purposes. If you have C<xmllint> and
C<tidy> available on your system, you can use these tools in conjuction with
the C<raku --doc> command to format the HTML.

=begin input
raku -Ilib --doc=HTML::Section <document> \
   | xmllint --html - 2>/dev/null \
   | tidy --indent yes 2>/dev/null
=end input

=head1 License

This module is distributed under the terms of the GNUN<GNU's Not Unix>
AGPLN<Aferro General Public License>, version 3.0.

=end pod