I've written a small example file to learn more about Perl 6 POD, and I'm using p6doc
to render a small manual page from the POD document. However, p6doc
also tries to parse the declarator blocks outside the POD document. This doesn't look particularly great in the output. Is there a way to ignore the declarator blocks when using p6doc
?
The code sample I'm using is:
#! /usr/bin/env perl6
use v6.c;
#| Greet people on the command line.
sub MAIN (
#| A name to greet.
$names,
#| Optional. Additional names to greet.
*@names,
) {
*
}
=begin pod
=NAME greeter
=AUTHOR Patrick Spek
=VERSION 0.0.1
The greeter application greets someone via a terminal. At least 1 name is
required, but multiple names can be given to greet many people in one go.
=end pod
And the output given by p6doc
is:
sub MAIN(
$names, # A name to greet.
*@names, # Optional. Additional names to greet.
)
Greet people on the command line.
class $names
A name to greet.
class *@names
Optional. Additional names to greet.
NAME
greeter
AUTHOR
Patrick Spek
VERSION
0.0.1
The greeter application greets someone via a terminal. At least 1 name is
required, but multiple names can be given to greet many people in one go.
Everything before the NAME
part is what I want to remove from the p6doc
output.
p6doc
does the same asperl6 --doc
? If I run both, the output on a pod document differs. The only difference I've spotted this far happens in aC<>
construct, inperl6 --doc
it appears as regular text, but withp6doc
it's bold. – Wavawave