Course of Raku / Advanced / Testing and documentation 🆕

Documenting code 🆕

Raku has a documentation markup built into the language, called Pod (or Rakudoc). You write documentation directly in your source file using = directives, and the compiler can both render it and make it available to your program.

This section covers the basic Pod directives, the formatting codes for marking up text, and how to access the documentation — either as rendered text with raku --doc, or as data through the $=pod variable.

Topics in this section

Practice

Complete the quiz that covers the contents of this section.

Exercises

This section contains 2 exercises. Examine all the topics of this section before doing the coding practice.

  1. Formatted text
  2. A Pod section

Course navigation

Solution: Plan two checks   |   Pod basics