booklitdoc

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(section *booklit.Section) booklit.Plugin

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func (Plugin) ColumnHeader

func (plugin Plugin) ColumnHeader(content booklit.Content) booklit.Content

func (Plugin) Columns

func (plugin Plugin) Columns(title booklit.Content, rest ...booklit.Content) booklit.Content

func (Plugin) Define

func (plugin Plugin) Define(node ast.Node, content booklit.Content) (booklit.Content, error)

func (Plugin) DescribeFruit

func (plugin Plugin) DescribeFruit(
	name string,
	definition booklit.Content,
	tags ...string,
) (booklit.Content, error)

func (Plugin) Godoc

func (plugin Plugin) Godoc(ref string) (booklit.Content, error)

func (Plugin) LitSyntax

func (plugin Plugin) LitSyntax(code booklit.Content) (booklit.Content, error)

func (Plugin) OutputFrame

func (plugin Plugin) OutputFrame(url string) booklit.Content

func (Plugin) SyntaxHl

func (plugin Plugin) SyntaxHl(content booklit.Content) booklit.Content
func (plugin Plugin) TemplateLink(tmpl string) (booklit.Content, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL