wiki

package
v1.9.21 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 19 Imported by: 4

Documentation

Index

Constants

View Source
const (
	FG = "fg"
	BG = "bg"

	FONT_SIZE        = "font-size"
	FONT_FAMILY      = "font-family"
	STROKE_DASHARRAY = "stroke-dasharray"
	STROKE_WIDTH     = "stroke-width"
	STROKE           = "stroke"
	FILL             = "fill"

	PADDING = "padding"
	MARGINX = "marginx"
	MARGINY = "marginy"
	HEIGHT  = "height"
	WIDTH   = "width"
)
View Source
const (
	LABEL    = "label"
	CHAIN    = "chain"
	SEQUENCE = "sequence"
)
View Source
const (
	HEADER    = "header"
	NAV       = "nav"
	INDEX_SHY = "index.shy"
)
View Source
const (
	INNER   = "inner"
	SHELL   = "shell"
	ROUTE   = "route"
	PROJECT = "project"
	PRODUCT = "product"
)
View Source
const (
	COLUMN = "column"
	FLEX   = "flex"
	END    = "end"
)
View Source
const (
	HEAD = "head"
	LIST = "list"
)
View Source
const (
	LEVEL  = "level"
	PREFIX = "prefix"
)
View Source
const (
	NAVMENU = "navmenu"
	PREMENU = "premenu"
	CHAPTER = "chapter"
	SECTION = "section"
	ENDMENU = "endmenu"
)
View Source
const AUDIO = "audio"
View Source
const BRIEF = "brief"
View Source
const CHART = "chart"
View Source
const DATA = "data"
View Source
const DRAW = "draw"
View Source
const FEEL = "feel"
View Source
const FIELD = "field"
View Source
const GEOAREA = "geoarea"
View Source
const IFRAME = "iframe"
View Source
const IMAGE = "image"
View Source
const ORDER = "order"
View Source
const PORTAL = "portal"
View Source
const REFER = "refer"
View Source
const SPARK = "spark"
View Source
const STYLE = "style"
View Source
const TABLE = "table"
View Source
const TITLE = "title"
View Source
const VIDEO = "video"
View Source
const WIKI = "wiki"
View Source
const WORD = "word"

Variables

View Source
var Index = &ice.Context{Name: WIKI, Help: "文档中心"}

Functions

func AddChart added in v0.7.8

func AddChart(name string, hand func(m *ice.Message) Chart)

func AddGroupOption added in v0.7.8

func AddGroupOption(m *ice.Message, group string, arg ...string)

func CSV added in v1.3.0

func CSV(m *ice.Message, text string, head ...string) *ice.Message

func Prefix added in v1.4.7

func Prefix(arg ...string) string

func WikiAction added in v1.4.4

func WikiAction(dir string, ext ...string) ice.Actions

func WordAlias added in v1.4.4

func WordAlias(m *ice.Message, cmd string, cmds ...string)

Types

type Chart

type Chart interface {
	Init(*ice.Message, ...string) Chart
	Draw(*ice.Message, int, int) Chart
	GetHeight(...string) int
	GetWidth(...string) int
}

type Group added in v0.7.8

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

func NewGroup added in v0.7.8

func NewGroup(m *ice.Message, arg ...string) *Group

func (*Group) DefsArrow added in v0.7.8

func (g *Group) DefsArrow(group string, height, width int, arg ...string) *ice.Message

func (*Group) Dump added in v0.7.8

func (g *Group) Dump(m *ice.Message, group string, arg ...string) *Group

func (*Group) DumpAll added in v1.4.4

func (g *Group) DumpAll(m *ice.Message, group ...string)

func (*Group) Echo added in v0.7.8

func (g *Group) Echo(group string, str string, arg ...ice.Any) *ice.Message

func (*Group) EchoArrowLine added in v0.7.8

func (g *Group) EchoArrowLine(group string, x1, y1, x2, y2 int, arg ...string) *ice.Message

func (*Group) EchoLine added in v0.7.8

func (g *Group) EchoLine(group string, x1, y1, x2, y2 int, arg ...string) *ice.Message

func (*Group) EchoPath added in v1.4.4

func (g *Group) EchoPath(group string, str string, arg ...ice.Any) *ice.Message

func (*Group) EchoRect added in v0.7.8

func (g *Group) EchoRect(group string, height, width, x, y int, arg ...string) *ice.Message

func (*Group) EchoText added in v0.7.8

func (g *Group) EchoText(group string, x, y int, text string, arg ...string) *ice.Message

func (*Group) Get added in v0.7.8

func (g *Group) Get(group string) *ice.Message

func (*Group) Option added in v0.7.8

func (g *Group) Option(group string, key string, arg ...ice.Any) string

type Item added in v0.7.8

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

func NewItem added in v0.7.8

func NewItem(str string, args ...ice.Any) *Item

func (*Item) Dump added in v0.7.8

func (item *Item) Dump(m *ice.Message) *ice.Message

func (*Item) Echo added in v0.7.8

func (item *Item) Echo(str string, arg ...ice.Any) *Item

func (*Item) Push added in v0.7.8

func (item *Item) Push(str string, arg ice.Any) *Item

type Message added in v1.3.0

type Message struct{ *ice.Message }

func (*Message) OptionKV added in v1.4.4

func (m *Message) OptionKV(key ...string) string

func (*Message) OptionTemplate added in v1.3.0

func (m *Message) OptionTemplate() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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