config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Src                       string          `yaml:"src"`
	Dst                       string          `yaml:"dst"`
	Text                      FontStyle       `yaml:"-"`
	Code                      FontStyle       `yaml:"-"`
	MaxNumOfCharactersPerLine int             `yaml:"max_num_of_characters_per_line"`
	HeadingNumber             bool            `yaml:"heading_number"`
	HeadingFontSize           HeadingFontSize `yaml:"-"`
	SheetName                 string          `yaml:"sheet_name"`
	TableMergeThreshold       int             `yaml:"table_merge_threshold"`
}

func DefaultConfig

func DefaultConfig() Config

func Load

func Load(path string) (Config, error)

Load reads configuration from the given path. Missing file returns defaults; parse errors are returned.

type FontStyle

type FontStyle struct {
	Family string  `yaml:"family"`
	Size   float64 `yaml:"size"`
}

type HeadingFontSize

type HeadingFontSize struct {
	H1 float64 `yaml:"h1"`
	H2 float64 `yaml:"h2"`
	H3 float64 `yaml:"h3"`
	H4 float64 `yaml:"h4"`
	H5 float64 `yaml:"h5"`
	H6 float64 `yaml:"h6"`
}

HeadingFontSize holds font sizes for each heading level.

Jump to

Keyboard shortcuts

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