Documentation ¶
Index ¶
- type Breadcrumb
- type BreadcrumbItem
- type BulletList
- type Callout
- type ChildList
- type ChildListItem
- type Code
- type Container
- type ContainerEx
- type DB
- type DBEntry
- type DBEntryContent
- type DBEntryProperty
- type DBEntryPropertyBoolValue
- type DBEntryPropertyRichTextValue
- type DBEntryPropertyTagsValue
- type DBEntryPropertyTextValue
- type DBEntryPropertyTitleValue
- type DBEntryPropertyValue
- type DBEntryTag
- type Divider
- type File
- type Heading
- type Image
- type IndexPage
- type IndexPageItem
- type LinkPreview
- type ListItem
- type Node
- type NumberedList
- type Page
- type Paragraph
- type Quote
- type Table
- type TableCell
- type TableRow
- type Text
- type TextRun
- type TodoList
- type Toggle
- type Video
- type YoutubeVideo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Breadcrumb ¶
type Breadcrumb struct { Page *tree.Page Items []*BreadcrumbItem }
func (*Breadcrumb) ToHTML ¶
func (ast *Breadcrumb) ToHTML(w *html.Writer)
type BreadcrumbItem ¶
type BulletList ¶
type BulletList struct {
Items []*ListItem
}
func (*BulletList) ToHTML ¶
func (ast *BulletList) ToHTML(w *html.Writer)
type Callout ¶
func (*Callout) AppendNode ¶
type ChildList ¶
type ChildList struct {
Items []*ChildListItem
}
func (*ChildList) AddItem ¶
func (ast *ChildList) AddItem(row *ChildListItem) *ChildListItem
func (*ChildList) NewItem ¶
func (ast *ChildList) NewItem() *ChildListItem
type ChildListItem ¶
type ContainerEx ¶
type DBEntry ¶
type DBEntry struct { ID string Properties []*DBEntryProperty Content *DBEntryContent Title string }
func (*DBEntry) NewProperty ¶
func (ast *DBEntry) NewProperty(name string, value DBEntryPropertyValue) *DBEntryProperty
type DBEntryContent ¶
func (*DBEntryContent) AppendNode ¶
func (ast *DBEntryContent) AppendNode(node Node)
func (*DBEntryContent) GetNodes ¶
func (ast *DBEntryContent) GetNodes() []Node
func (*DBEntryContent) Render ¶
func (ast *DBEntryContent) Render(w *html.Writer)
func (*DBEntryContent) ToHTML ¶
func (ast *DBEntryContent) ToHTML(w *html.Writer)
type DBEntryProperty ¶
type DBEntryProperty struct { Name string Value DBEntryPropertyValue Content string }
func (*DBEntryProperty) Render ¶
func (v *DBEntryProperty) Render(w *html.Writer)
func (*DBEntryProperty) ToHTML ¶
func (v *DBEntryProperty) ToHTML(w *html.Writer)
type DBEntryPropertyBoolValue ¶
type DBEntryPropertyBoolValue struct {
Value bool
}
func NewDBEntryPropertyBoolValue ¶
func NewDBEntryPropertyBoolValue(value bool) *DBEntryPropertyBoolValue
func (*DBEntryPropertyBoolValue) ToHTML ¶
func (v *DBEntryPropertyBoolValue) ToHTML(w *html.Writer)
type DBEntryPropertyRichTextValue ¶
type DBEntryPropertyRichTextValue struct {
Value *Text
}
func NewDBEntryPropertyRichTextValue ¶
func NewDBEntryPropertyRichTextValue(value *Text) *DBEntryPropertyRichTextValue
func (*DBEntryPropertyRichTextValue) ToHTML ¶
func (v *DBEntryPropertyRichTextValue) ToHTML(w *html.Writer)
type DBEntryPropertyTagsValue ¶
type DBEntryPropertyTagsValue struct {
Values []*DBEntryTag
}
func NewDBEntryPropertyTagsValue ¶
func NewDBEntryPropertyTagsValue(values []*DBEntryTag) *DBEntryPropertyTagsValue
func (*DBEntryPropertyTagsValue) ToHTML ¶
func (v *DBEntryPropertyTagsValue) ToHTML(w *html.Writer)
type DBEntryPropertyTextValue ¶
type DBEntryPropertyTextValue struct {
Value string
}
func NewDBEntryPropertyTextValue ¶
func NewDBEntryPropertyTextValue(value string) *DBEntryPropertyTextValue
func (*DBEntryPropertyTextValue) ToHTML ¶
func (v *DBEntryPropertyTextValue) ToHTML(w *html.Writer)
type DBEntryPropertyTitleValue ¶
type DBEntryPropertyTitleValue struct {
Value string
}
func NewDBEntryPropertyTitleValue ¶
func NewDBEntryPropertyTitleValue(value string) *DBEntryPropertyTitleValue
func (*DBEntryPropertyTitleValue) ToHTML ¶
func (v *DBEntryPropertyTitleValue) ToHTML(w *html.Writer)
type DBEntryPropertyValue ¶
type DBEntryTag ¶
type IndexPage ¶
type IndexPageItem ¶
type LinkPreview ¶
type LinkPreview struct { URL string Title string Icon string Name string Description string Images []string Link string }
func (*LinkPreview) ToHTML ¶
func (ast *LinkPreview) ToHTML(w *html.Writer)
type ListItem ¶
func (*ListItem) AppendNode ¶
type NumberedList ¶
type NumberedList struct {
Items []*ListItem
}
func (*NumberedList) ToHTML ¶
func (ast *NumberedList) ToHTML(w *html.Writer)
type Page ¶
func (*Page) AppendNode ¶
type Paragraph ¶
func (*Paragraph) AppendNode ¶
type Quote ¶
func (*Quote) AppendNode ¶
type Table ¶
type Table struct { HasColumnHeader bool HasRowHeader bool Rows []*TableRow HeaderRow *TableRow BodyRows []*TableRow }
func (*Table) AppendNode ¶
func (*Table) ShouldProcessChildren ¶
type TextRun ¶
type Toggle ¶
func (*Toggle) AppendNode ¶
type Video ¶
type Video struct { URL string Caption *Text CaptionHTML string Youtube *YoutubeVideo }
type YoutubeVideo ¶
type YoutubeVideo struct {
URL string
}
Click to show internal directories.
Click to hide internal directories.