config

package
v0.0.0-...-7c520dc Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: CC0-1.0, MIT, OFL-1.1 Imports: 6 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 {
	BaseURL    string                   `json:"base_url"`
	Languages  []language.Tag           `json:"languages"`
	Links      map[language.Tag][]*Link `json:"links"`
	StyleSheet string                   `json:"stylesheet"`
	Includes   *Includes                `json:"includes"`
	AssetsDir  string                   `json:"assets_dir"`
	OutDir     string                   `json:"out_dir"`
	HideIntro  bool                     `json:"hide_intro"`
}

func Load

func Load(projectDir string) (*Config, error)

type Includes

type Includes struct {
	Head    string `json:"head"`
	FavIcon string `json:"favicon"`
}
type Link struct {
	Text  string `json:"caption"`
	Title string `json:"title"`
	URL   string `json:"url"`
}

Jump to

Keyboard shortcuts

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