types

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: ISC Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asciinema

type Asciinema struct {
	Cast     string `json:"cast"`
	URL      string `json:"url"`
	Loop     bool   `json:"loop"`
	AutoPlay bool   `json:"autoplay"`
}

type Cast

type Cast struct {
	Width  int `json:"width"`
	Height int `json:"height"`
}

type Code

type Code struct {
	Header  string
	Code    string
	Footer  string
	IsEmpty bool
}

type Content added in v0.9.3

type Content struct {
	Markdown string
	HTML     string
}
type Menu struct {
	Link      int
	PagePrint int
	PageIndex int
	Title     string
}

type Page added in v0.9.3

type Page struct {
	Header Content
	Data   Content
	Footer Content
}

type Presentation

type Presentation struct {
	CSS       string
	JS        string
	Slides    []Slide
	Menu      []Menu
	Title     string
	Replacers map[string]string
	Endpoints map[string]TerminalCommand
}

type ReadOptions

type ReadOptions struct {
	DefaultFontSize                string
	DefaultBackgroundColor         string
	EveryDashIsACut                bool
	DefaultTerminalFontSize        string
	DefaultTerminalFontColor       string
	DefaultTerminalBackgroundColor string
	HideRunButton                  bool
	HidePageNumber                 bool
	KeepPagePrintOnCut             bool
}

type Slide

type Slide struct {
	Page                  Page
	Admin                 Content
	Notes                 string
	IsAdmin               bool
	Terminal              TerminalCommand
	Asciinema             *Asciinema
	Cast                  *Cast
	TerminalCommandBefore []TerminalCommand
	TerminalCommand       []TerminalCommand
	TerminalCommandAfter  []TerminalCommand

	SlideCmdBefore          []TerminalCommand
	SlideCmdAfter           []TerminalCommand
	JS                      string // javascript function to call on page enter
	Path                    string
	UseTmpFolder            bool
	CanEdit                 bool
	HasCast                 bool
	HasCastStreamed         bool
	HasRun                  bool
	HasTerminal             bool
	BackgroundImage         string
	BackgroundColor         string
	PageIndex               int
	PagePrint               int
	FontSize                string
	TerminalFontSize        string
	TerminalFontColor       string
	TerminalBackgroundColor string
	HideRunButton           bool
	Link                    string
	LinkNext                string
	LinkPrev                string
	PrintOnly               bool
	PrintDisable            bool
	HidePageNumber          bool
	Title                   string
	EnableOverflow          bool
}

type TerminalCommand

type TerminalCommand struct {
	Dir      string
	DirFixed bool
	App      string
	Cmd      []string
	Code     Code
	Index    int
	FileName string
}

type TerminalOutputLine

type TerminalOutputLine struct {
	Timestamp string
	Line      string
}

Jump to

Keyboard shortcuts

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