config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 5 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 {
	Repo struct {
		ScanPath   string   `yaml:"scanPath"`
		Readme     []string `yaml:"readme"`
		MainBranch []string `yaml:"mainBranch"`
		Ignore     []string `yaml:"ignore,omitempty"`
		Unlisted   []string `yaml:"unlisted,omitempty"`
	} `yaml:"repo"`
	Dirs struct {
		Templates string `yaml:"templates"`
		Static    string `yaml:"static"`
	} `yaml:"dirs"`
	Meta struct {
		Title           string `yaml:"title"`
		Description     string `yaml:"description"`
		SyntaxHighlight bool   `yaml:"syntaxHighlight"`
	} `yaml:"meta"`
	UI struct {
		CommitsPageSize uint32 `yaml:"commitsPageSize"`
		Footer          struct {
			Links []struct {
				Text string `yaml:"text"`
				Href string `yaml:"href"`
			} `yaml:"links"`
			PoweredBy bool `yaml:"poweredBy"`
		} `yaml:"footer"`
	} `yaml:"ui"`
	CompileTemplatesOnRequest bool `yaml:"compileTemplatesOnRequest"`
	Server                    struct {
		Name string `yaml:"name,omitempty"`
		Host string `yaml:"host"`
		Port uint   `yaml:"port"`
	} `yaml:"server"`
	// contains filtered or unexported fields
}

func NewWithDefaults

func NewWithDefaults() *Config

func (*Config) ReadFromFile

func (c *Config) ReadFromFile(path string) error

func (*Config) Resolve

func (c *Config) Resolve(cwd string) error

Jump to

Keyboard shortcuts

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