docgen

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAndWriteFiles added in v0.19.0

func GenerateAndWriteFiles(docGenerator *DocsGen) error

func GenerateFiles

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

DEPRECATED prefer GenerateAndWriteFiles

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, docsOptions *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
	DocsDir     string
}

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)

func (*DocsGen) WriteFiles added in v0.19.0

func (d *DocsGen) WriteFiles(files 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