Documentation
¶
Overview ¶
Package docscheck reads the pages of the docs site for the tests that keep them true: the diagnostic pages (REQ-DOC-03), the code samples (REQ-DOC-04) and the page inventory (REQ-DOC-02).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentDir ¶
ContentDir returns the content directory of the docs site.
Types ¶
type Block ¶
type Block struct {
Lang string
// Title is the title option of the block: the file a sample belongs
// to, or the command of an output block.
Title string
Code string
// Line is the line of the opening fence in the body.
Line int
}
Block is one fenced code block.
type Page ¶
type Page struct {
// Slug is the site path with no slashes at its ends, for example
// "errors/GX2001".
Slug string
// File is the path of the Markdown file.
File string
// Meta holds the frontmatter keys with a plain value.
Meta map[string]string
// Body is the Markdown after the frontmatter.
Body string
}
Page is one Markdown page of the docs site.