Documentation ¶
Index ¶
- Constants
- Variables
- func IsHTML(path string) bool
- func IsMarkdown(path string) bool
- type BoolProperty
- type Config
- type GenerateOptions
- type HTMLGeneratorParams
- type JSONProperty
- type Markdown
- type NumberProperty
- type Plugin
- type Preset
- type Property
- type RevealJS
- type Revision
- type Server
- type SlideResourceFS
- type StringProperty
- type Watcher
Constants ¶
View Source
const ( FileNameConfig = "config.yml" FileNameIndexHTMLTmpl = "index.html.tmpl" FileNameIndexHTML = "index.html" DirNameSlides = "slides" DirNameAssets = "assets" )
Variables ¶
View Source
var PresetNames = []string{"default", "demo"}
Functions ¶
func IsMarkdown ¶ added in v0.0.3
Types ¶
type BoolProperty ¶ added in v0.0.5
type BoolProperty struct { }
func (*BoolProperty) ToString ¶ added in v0.0.5
func (p *BoolProperty) ToString(v interface{}) (string, error)
type Config ¶
type Config struct { Slides []string `yaml:"slides"` Title string `yaml:"title"` Theme string `yaml:"theme"` RevealJS map[string]interface{} `yaml:"revealjs"` InternalPlugins []interface{} `yaml:"plugins"` }
func LoadConfigFromMarkdown ¶ added in v0.0.5
func (*Config) OverrideWith ¶ added in v0.0.3
type GenerateOptions ¶
type HTMLGeneratorParams ¶
type JSONProperty ¶ added in v0.0.5
type JSONProperty struct { }
func (*JSONProperty) ToString ¶ added in v0.0.5
func (p *JSONProperty) ToString(v interface{}) (string, error)
type Markdown ¶ added in v0.0.3
type Markdown struct {
// contains filtered or unexported fields
}
func NewMarkdown ¶ added in v0.0.3
func (*Markdown) WithoutYAMLHeader ¶ added in v0.0.3
func (*Markdown) YAMLHeader ¶ added in v0.0.3
type NumberProperty ¶ added in v0.0.5
type NumberProperty struct { }
func (*NumberProperty) ToString ¶ added in v0.0.5
func (p *NumberProperty) ToString(v interface{}) (string, error)
type Preset ¶
type Preset struct {
// contains filtered or unexported fields
}
Preset is a collection of files that are used to generate an initial Reveal.js presentation.
func NewDefaultPreset ¶
func NewDefaultPreset() *Preset
type RevealJS ¶
type RevealJS struct { EmbedHTML bool EmbedMarkdown bool // contains filtered or unexported fields }
func NewRevealJS ¶
func (*RevealJS) DataDirectory ¶
func (*RevealJS) FileSystem ¶ added in v0.0.3
func (*RevealJS) GenerateIndexHTML ¶ added in v0.0.3
func (r *RevealJS) GenerateIndexHTML(w io.Writer, params *HTMLGeneratorParams) error
func (*RevealJS) ReloadConfig ¶ added in v0.0.3
type SlideResourceFS ¶ added in v0.0.5
type SlideResourceFS struct {
// contains filtered or unexported fields
}
SlideResourceFS is a file system that provides slides and assets. - *.md - *.html - slides/*.md - slides/*.html - assets/**/* - config.yml - index.html.tmpl
func NewSlideResourceFS ¶ added in v0.0.5
func NewSlideResourceFS(fs fs.FS) *SlideResourceFS
type StringProperty ¶ added in v0.0.5
type StringProperty struct {
// contains filtered or unexported fields
}
func (*StringProperty) ToString ¶ added in v0.0.5
func (p *StringProperty) ToString(v interface{}) (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.