docgen

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFiles

func GenerateFiles(project *model.Project, docsOptions *options.DocsOptions) (code_generator.Files, error)

func WriteCrossProjectDocs added in v0.10.21

func WriteCrossProjectDocs(
	genDocs *options.DocsOptions,
	absoluteRoot string,
	projectMap parser.ProjectMap,
) error

write docs that are produced from the content of multiple projects

func WriteCrossProjectDocsHugo added in v0.10.21

func WriteCrossProjectDocsHugo(
	genDocs *options.DocsOptions,
	absoluteRoot string,
	projectMap parser.ProjectMap,
) error

Hugo docs require a datafile that is used by shortcodes

func WritePerProjectsDocs added in v0.10.21

func WritePerProjectsDocs(project *model.Project, genDocs *options.DocsOptions, absoluteRoot string) error

write docs that are produced from the content of a single project

Types

type DocsGen

type DocsGen struct {
	DocsOptions options.DocsOptions
	Project     *model.Project
}

func (*DocsGen) FileHeader

func (d *DocsGen) FileHeader(filename string) string

func (*DocsGen) GenerateFilesForProject

func (d *DocsGen) GenerateFilesForProject() (code_generator.Files, error)

func (*DocsGen) GenerateFilesForProtoFiles

func (d *DocsGen) GenerateFilesForProtoFiles(protoFiles []*protokit.FileDescriptor) (code_generator.Files, error)

Directories

Path Synopsis
templates

Jump to

Keyboard shortcuts

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