Documentation ¶
Index ¶
- func GenerateDocumentTemplateBase(doc markup.Document) markup.Document
- func GenerateEmptyDocumentTemplate(plangs []string) markup.Document
- func GenerateMergedDocument(doc_base, doc_lang markup.Document) markup.Document
- func ParseDocument(content string) markup.Document
- func ParseDocumentationBlock(data string) markup.DocumentationBlock
- func RenderArguments(b *bytes.Buffer, args Arguments)
- func RenderCodeBlock(b *bytes.Buffer, code_block CodeBlock)
- func RenderComments(b *bytes.Buffer, comments []Comment)
- func RenderDescription(b *bytes.Buffer, description Option[string])
- func RenderDocument(doc Document) string
- func RenderDocumentationBlock(doc_block DocumentationBlock) string
- func RenderExamples(b *bytes.Buffer, examples []Example)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDocumentTemplateBase ¶
Function that generates marfdown documentation from base.
func GenerateEmptyDocumentTemplate ¶
Function that generates empty markdown documentation file template.
func GenerateMergedDocument ¶
Function that merges two docs into the new one
func ParseDocument ¶
Function that parses document into `Document` struct
func ParseDocumentationBlock ¶
func ParseDocumentationBlock(data string) markup.DocumentationBlock
Function that parses a single `DocumentationBlock`
func RenderArguments ¶
Function that renders `Argumanets` to markdown
func RenderCodeBlock ¶
Function that renders single `CodeBlock` to markdown
func RenderComments ¶
Function that renders `Comment`s block
func RenderDescription ¶
Function that renders single description to markdown
func RenderDocument ¶
func RenderDocument(doc Document) string
func RenderDocumentationBlock ¶
func RenderDocumentationBlock(doc_block DocumentationBlock) string
Function that renders single documentation block
func RenderExamples ¶
Function that renders `Exaple`s block
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.