config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransitionNone    Transition = "none"
	TransitionFade    Transition = "fade"
	TransitionSlide   Transition = "slide"
	TransitionConvex  Transition = "convex"
	TransitionConcave Transition = "concave"
	TransitionZoom    Transition = "zoom"

	ControlsLayoutBottomRight ControlsLayout = "bottom-right"
	ControlsLayoutEdges       ControlsLayout = "edges"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Components

type Components struct {
	ConfigFileInUse string    `mapstructure:"-"`
	Reveal          Reveal    `mapstructure:",squash"`
	Rendering       Rendering `mapstructure:",squash"`
	Mermaid         Mermaid
}

func Load

func Load(workingDir, configFile string) (cfg *Components, err error)

type ControlsLayout

type ControlsLayout string

type Mermaid

type Mermaid struct {
	Theme string `json:"theme"`
}

type Rendering

type Rendering struct {
	VerticalSeparator   string
	HorizontalSeparator string
	Stylesheets         []string
}

type Reveal

type Reveal struct {
	Theme          string         `json:"theme"`
	CodeTheme      string         `json:"codeTheme"`
	Transition     Transition     `json:"transition"`
	Controls       bool           `json:"controls"`
	ControlsLayout ControlsLayout `json:"controlsLayout"`
	Progress       bool           `json:"progress"`
	History        bool           `json:"history"`
	Center         bool           `json:"center"`
	SlideNumber    bool           `json:"slideNumber"`
	Width          uint           `json:"width"`
	Height         uint           `json:"height"`
	Menu           struct {
		Numbers                        bool `json:"numbers"`
		UseTextContentForMissingTitles bool `json:"useTextContentForMissingTitles"`
		Transitions                    bool `json:"transitions"`
		HideMissingTitles              bool `json:"hideMissingTitles"`
		Markers                        bool `json:"markers"`
		OpenButton                     bool `json:"openButton"`
	} `json:"menu"`
}

type Transition

type Transition string

func (Transition) String

func (t Transition) String() string

Jump to

Keyboard shortcuts

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