config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Banner struct {
	Message     string `yaml:"message"`
	Color       string `yaml:"color"`
	Dismissible bool   `yaml:"dismissible"`
}

type Branding added in v1.0.5

type Branding struct {
	LogoLight string `yaml:"logo_light"`
	LogoDark  string `yaml:"logo_dark"`
	LogoAlt   string `yaml:"logo_alt"`
	LogoLink  string `yaml:"logo_link"`
	Favicon   string `yaml:"favicon"`
}

type Config

type Config struct {
	Title       string       `yaml:"title"`
	Description string       `yaml:"description"`
	URL         string       `yaml:"url"`
	Language    string       `yaml:"language"`
	Theme       string       `yaml:"theme"`
	Redirect    string       `yaml:"redirect,omitempty"`
	Branding    Branding     `yaml:"branding"`
	Footer      Footer       `yaml:"footer"`
	Navigation  []NavItem    `yaml:"navigation"`
	Sections    SectionPaths `yaml:"sections"`
	Banner      Banner       `yaml:"banner,omitempty"`
	EditBaseURL string       `yaml:"edit_base_url,omitempty"`
	LLMs        LLMsConfig   `yaml:"llms,omitempty"`
}

func DefaultConfig

func DefaultConfig() Config

func Load

func Load(rootDir string) (Config, error)

func (Config) Save

func (c Config) Save(rootDir string) error
type Footer struct {
	Copyright string         `yaml:"copyright"`
	Position  string         `yaml:"position"`
	Columns   []FooterColumn `yaml:"columns"`
	Social    []FooterSocial `yaml:"social"`
}

type FooterColumn added in v1.0.5

type FooterColumn struct {
	Title string       `yaml:"title"`
	Links []FooterLink `yaml:"links"`
}
type FooterLink struct {
	Label string `yaml:"label"`
	Href  string `yaml:"href"`
}

type FooterSocial added in v1.0.5

type FooterSocial struct {
	Icon  string `yaml:"icon"`
	Href  string `yaml:"href"`
	Label string `yaml:"label"`
}

type LLMsConfig added in v1.1.0

type LLMsConfig struct {
	LLMsTxt     bool `yaml:"llms_txt"`
	LLMsTxtFull bool `yaml:"llms_txt_full"`
}
type NavItem struct {
	Label string `yaml:"label"`
	Path  string `yaml:"path"`
}

type SectionPaths

type SectionPaths struct {
	Docs      string `yaml:"docs"`
	Guides    string `yaml:"guides"`
	Tutorials string `yaml:"tutorials"`
}

Jump to

Keyboard shortcuts

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