internal/docsite/tooling.go
internal/docsite · 126 lines · 4 declarations · source
Declarations
var makeTarget
var makeTarget = regexp.MustCompile(`^([A-Za-z][\w-]*)\s*:([^=]|$)`)
func renderTooling
func renderTooling(opts Options) (page, error)
type target
type target struct{ name, doc string }
func makeTargets
func makeTargets(makefile string) []target
makeTargets pairs each target with the comment block directly above it. A blank line or an assignment between the two means the comment is about something else.