staticdoc

package
v0.0.0-...-e74f711 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestingOptions = Options{
	MatchingTags:     nil,
	JSON:             true,
	Markdown:         true,
	MarkdownMetadata: true,
}

Functions

This section is empty.

Types

type Files

type Files struct {
	ByPath map[string][]byte
}

func Generate

func Generate(ctx context.Context, r io.Reader, root string, opt Options) (*Files, error)

type Options

type Options struct {
	// MatchingTags is a list of tags (exported, unexported, deprecated, etc.) and if the
	// documentation page or section does not match at least one of them, it will be omitted.
	MatchingTags []protocol.Tag

	// Emit raw JSON representation of pages.
	JSON bool

	// Emit Markdown representation of pages.
	Markdown bool

	// Emit metadata in markdown (search keys, tags, etc.)
	MarkdownMetadata bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL