Documentation
¶
Overview ¶
Provides documentation data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Dark = styles.Get("xcode-dark")
View Source
var Formatter = html.New(FormatterOptions...)
View Source
var FormatterOptions = []html.Option{ html.TabWidth(4), html.ClassPrefix("_"), html.WithClasses(true), html.WithLineNumbers(true), html.LineNumbersInTable(true), }
View Source
var Light = styles.Get("xcode")
View Source
var Markdown = goldmark.New( goldmark.WithRendererOptions( rhtml.WithUnsafe(), ), goldmark.WithExtensions( highlighting.NewHighlighting( highlighting.WithFormatOptions(FormatterOptions...), ), extension.GFM, ), )
Functions ¶
Types ¶
type Constructor ¶
type Context ¶
type Context struct {
// Base URL for external doc website.
BaseURL url.URL
// Path within base corresponding to renderer object.
Path string
// Base URL for external image CDN.
BaseImageURL url.URL
// Heading level to use.
Level int
// Heading levels for summary section.
SummaryLevel int
// Heading levels for description section.
DescriptionLevel int
}
Extra context for renderer.
func (Context) AppendPath ¶
Returns ctx with s appended to the Path.
type Doc ¶
type Doc struct {
Summary string `json:",omitempty"`
Description string `json:",omitempty"`
DeprecationMessage string `json:",omitempty"`
CodeSamples []string `json:",omitempty"`
}
func (*Doc) RenderHTML ¶
type Root ¶
type Root struct {
Class map[id.Class]*Class
Member map[id.Class]map[id.Member]*Member
Enum map[id.Enum]*Enum
EnumItem map[id.Enum]map[id.EnumItem]*EnumItem
Type map[id.Type]*Type
}
func (*Root) RenderHTML ¶
type Transformer ¶
type Type ¶
type Type struct {
Constants []Constant `json:",omitempty"`
Constructors []Constructor `json:",omitempty"`
Functions []Function `json:",omitempty"`
Properties []Property `json:",omitempty"`
Methods []Method `json:",omitempty"`
MathOperations []Operation `json:",omitempty"`
Tags []string `json:",omitempty"`
Doc
}
func (*Type) RenderHTML ¶
Click to show internal directories.
Click to hide internal directories.