Documentation
¶
Overview ¶
Package examples holds the example kojo.yaml files of the configuration reference. They are files, not strings in the generator, so that the tests of this package can load each one with the real loader: an example that stops being valid fails `go test`, and `make schema` copies them into the docs as they are.
A file starts with its caption: a comment that ends at the first blank line. The reference page shows the caption as a paragraph and the rest of the file as the example.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Example ¶
type Example struct {
// File is the path of the file in this directory.
File string
// Title is the heading of a complete example. Section snippets have none.
Title string
// Caption says what the example sets up. It may use Markdown.
Caption string
// YAML is the example as the docs show it: the file without its caption.
YAML string
}
Example is one example file.
func Deployments ¶
Deployments returns the complete kojo.yaml examples, one per supported deployment.