Reading the docs
rakudoc - the Raku pod reader
rakudoc is a command-line-interface (CLI) program that reads Raku pod from installed modules' source code, in contrast to running
raku --doc=MODULE programfile which reads Raku pod from the named source file.
rakudoc may not be installed automatically depending upon how you installed Rakudo Raku. To install it use
zef install rakudoc
rakudoc [switches] [arguments]
With no switches or arguments,
rakudoc lists its help to
You want to maintain the index?To build the index for `rakudoc -r ...`:rakudoc -bWhat documentation do you want to read?Examples: rakudoc Strrakudoc Str.splitrakudoc faqrakudoc path/to/fileYou can also look up specific method/routine/sub definitions:rakudoc -r hyperrakudoc -r pushYou can bypass the pager and print straight to stdout:rakudoc -n Str
The text output can be captured and converted to other forms if desired.
If you want to use ANSI escape sequences, which will apply boldface and other enhancements to the output, you will have to set POD_TO_TEXT_ANSI, which is unset by default
rakudoc can only extract embedded Raku pod from installed module source files (as listed in a distribution's
META6.json file). It is planned to add a feature for
rakudoc (in conjunction with
META6.json changes) to extract all Raku pod in files included with the installed distribution.