Skip to main content

internal/docsite/tooling.go

internal/docsite · 126 lines · 4 declarations · source

Declarations​

var makeTarget​

var makeTarget = regexp.MustCompile(`^([A-Za-z][\w-]*)\s*:([^=]|$)`)

source

func renderTooling​

func renderTooling(opts Options) (page, error)

source

type target​

type target struct{ name, doc string }

source

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.

source