Documentation
¶
Overview ¶
Package docsoptions extracts the libav option keys the documentation teaches, so they can be checked by shape without an engine (Check) and offered to a real driver where one is supplied (the gated test in pkg/afmpeg/native).
The why is afmpeg#11: the option names in docs/ are only wrong at runtime, so nothing that compiles or lints them would catch a bad one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Sources = []string{"README.md", "docs"}
Sources are the paths, relative to the module root, whose Markdown is extracted.
Functions ¶
This section is empty.
Types ¶
type Dict ¶
type Dict int
Dict is the option dictionary a key is written into.
The dictionaries a documented key can land in.
type Site ¶
type Site struct {
File string
Line int
Kind SiteKind
Path string
Format string
VideoCodec string
AudioCodec string
Keys []Key
}
Site is one documented input or output and the option keys written into it, with what the docs set alongside them.
func Extract ¶
Extract reads every Markdown file under Sources in fsys and returns the documented sites that carry at least one option key.
func ExtractFile ¶
ExtractFile returns the sites in one Markdown document. Fenced code blocks and inline code spans are each read as an independent fragment.