config

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteConfig

func WriteConfig(config *Config, filePath string) error

Types

type BookConfig

type BookConfig struct {
	Title   string   `toml:"title"`
	Authors []string `toml:"authors"`
	Src     string   `toml:"src"`
}

type Config

type Config struct {
	Book   BookConfig       `toml:"book"`
	Output map[string]Theme `toml:"output"`
}

func ReadConfig

func ReadConfig(filePath string) (*Config, error)

type Theme

type Theme struct {
	DefaultTheme string `toml:"default-theme"`
	SiteURL      string `toml:"site-url"`
}

Jump to

Keyboard shortcuts

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