Questions tagged [pod6]
6 questions
11
votes
1 answer
Can Markdown image links be generated using POD6?
In all of my Raku packages, the README has a line at the top having Travis badge for the module, like this:
[](https://travis-ci.org/Kaiepi/p6-Failable)
At the moment, I am…

Kaiepi
- 3,230
- 7
- 27
10
votes
1 answer
In Raku, how can I get Pod::To modules to recognize a Pod::Block::Declarator POD element?
#!/usr/bin/env raku
use v6.d;
sub MAIN (
:$foo = 42, #= A test
) {
run $*EXECUTABLE, '--doc', $*PROGRAM;
}
=begin pod
=head1 Bar
blah, blah, blah
=head2 Baz
yadda, yadda, yadda
=end pod
Output:
class Mu $
A test
Bar
blah, blah,…

Jim Bollinger
- 1,671
- 1
- 13
7
votes
1 answer
Obtaining the Pod of a module without explicitly exporting it
The documentation in Perl 6 programs, using the Pod 6 DSL, are actually parsed as part of the code; this makes that documentation available, inside the program, as the $=pod variable.
However, I'd like to have access to that variable in order to…

jjmerelo
- 22,578
- 8
- 40
- 86
7
votes
2 answers
Access POD from another Perl 6 file
The Perl 6 POD documentation has a section on accessing the current file's POD document by using $=pod. There is no information on accessing another file's POD document.
How can I access another file's POD structure, without altering the current…

Tyil
- 1,797
- 9
- 14
5
votes
2 answers
How do I generate numbered lists with pod?
Looking at https://docs.raku.org/language/pod#Lists. I don't see a way to create a numbered list:
one
three
four
Is there an undocumented way to do it?

StevieD
- 6,925
- 2
- 25
- 45
4
votes
1 answer
Can Declarator Blocks be used on variable declarations?
When I run raku --doc test.raku on the following code:
#! /usr/bin/env raku
use v6.d;
#| The answer
my Int $bar = 42;
#= Thank you, Douglas
say $bar.WHY.leading;
say $bar.WHY.following;
I get no output. When I run the code (raku test.raku), the…

Jim Bollinger
- 1,671
- 1
- 13