rendering

package
v1.0.1-0...-7180b55 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PlanModes = map[string]PlanMode{
	"all":     PlanModeAll,
	"missing": PlanModeMissing,
	"changed": PlanModeChanged,
}

Functions

func ExecutePlan

func ExecutePlan(plan RenderPlan) error

func SvgToPng

func SvgToPng(ctx context.Context, svg []byte, customFontPath *string) ([]byte, error)

Types

type Font

type Font struct {
	Name      string
	Embedded  bool
	FS        fs.FS
	License   string
	Copyright string
	Variants  []string
	Paths     []string
}

func ListFonts

func ListFonts(customFontPath *string) ([]Font, error)

type PlanMode

type PlanMode int
const (
	PlanModeAll PlanMode = iota
	PlanModeMissing
	PlanModeChanged
)

type PlannedRender

type PlannedRender struct {
	Template templating.TemplateDefinition
	Cover    templating.Cover
}

type RenderPlan

type RenderPlan struct {
	ConfigPath string
	StatePath  string

	Config templating.Config
	State  templating.StateFile

	PlannedRenders []PlannedRender

	ProgressBar *pterm.ProgressbarPrinter
}

func PlanRender

func PlanRender(configPath, statePath string, mode PlanMode) (RenderPlan, error)

Jump to

Keyboard shortcuts

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