Documentation ¶
Index ¶
- func GenerateAndWriteFiles(docGenerator *DocsGen) error
- func GenerateFiles(project *model.Project, docsOptions *options.DocsOptions) (code_generator.Files, error)
- func WriteCrossProjectDocs(genDocs *options.DocsOptions, absoluteRoot string, ...) error
- func WriteCrossProjectDocsHugo(genDocs *options.DocsOptions, absoluteRoot string, ...) error
- func WritePerProjectsDocs(project *model.Project, docsOptions *options.DocsOptions, absoluteRoot string) error
- type DocsGen
- func (d *DocsGen) FileHeader(filename string) string
- func (d *DocsGen) GenerateFilesForProject() (code_generator.Files, error)
- func (d *DocsGen) GenerateFilesForProtoFiles(protoFiles []*protokit.FileDescriptor) (code_generator.Files, error)
- func (d *DocsGen) WriteFiles(files code_generator.Files) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAndWriteFiles ¶ added in v0.19.0
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 (*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
Click to show internal directories.
Click to hide internal directories.