These embedded example source files are a set of YAML documents.
Each one of them is a list of individual "documents", where the delimiter is the usual "---".
The are composed of:
-
Header, consisting of the language specification and the category. They are fixed for the entire file. The category definition has two levels and is either a list of strings or a single string with a "/" as delimiter. Together with the overall language, categories must be unique. Inside a yaml file, the category can change (only once, though, due to the overall uniqueness constraint)
-
The actual entries consists of
title
,descr
, andcode
. Wherecode
is best written with "|" for verbatim text anddescr
using ">" for multi-line flow-text. Feel free to use Markdown for thedescr
content. If there are errors with the title, enclose it in quotes. All entries per category retain their ordering!Example:
title: Getting Help test: | [expected stdout string] descr: > Sage has extensive built-in documentation, accessible by typing the name of a function or a constant (for example), followed by a question mark: ``` log2? ``` It's also possible to use the `help(...)` function. code: | log2? help(log2)
Creative Commons: Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)