Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataHomePath ¶
func DataHomePath() string
DataHomePath returns the path to the data home directory.
func StateHomePath ¶
func StateHomePath() string
Types ¶
type Config ¶ added in v1.8.0
type Config struct {
// Whether to display line breaks in the document as line breaks
Breaks *bool `yaml:"breaks,omitempty" json:"breaks,omitempty"`
// Conditions for default
Defaults []DefaultCondition `yaml:"defaults,omitempty" json:"defaults,omitempty"`
// command to convert code blocks to images
CodeBlockToImageCommand string `yaml:"codeBlockToImageCommand,omitempty" json:"codeBlockToImageCommand,omitempty"`
// folder ID to create presentations and upload temporary images to
FolderID string `yaml:"folderID,omitempty" json:"folderID,omitempty"`
// base presentation ID to use for new presentations
BasePresentationID string `yaml:"basePresentationID,omitempty" json:"basePresentationID,omitempty"`
}
type DefaultCondition ¶ added in v1.8.0
type DefaultCondition struct {
If string `json:"if"` // condition to check
Layout string `json:"layout,omitempty"` // layout name to apply if condition is true
Freeze *bool `json:"freeze,omitempty"` // freeze the page
Ignore *bool `json:"ignore,omitempty"` // whether to ignore the page if condition is true
Skip *bool `json:"skip,omitempty"` // whether to skip the page if condition is true
}
Click to show internal directories.
Click to hide internal directories.