Example block

A worked example or code sample; it projects onto the unit named by its unit field rather than getting its own page.

PropertyTypeRequiredDescription
ididentifieryes
titleutf8yes
unitidentifierno
narrativeutf8no
code_langutf8no
codeutf8no
expectedutf8no
audienceAudienceno
tagslist<utf8>no
wcl
example clone_cmd {
  title     = "Cloning a repository"
  unit      = git_cli
  narrative = "Copy a remote repository locally."
  code_lang = "console"
  code = <<'SH'
$ git clone https://github.com/owner/repo
SH
  expected = "A repo/ directory with full history."
}