Documentation
¶
Index ¶
- type Config
- func (conf *Config) GetHighlightStyle() string
- func (conf *Config) GetRelURL(path string) string
- func (conf *Config) GetSlug(name string) string
- func (conf *Config) GetSummary(text string) string
- func (conf *Config) GetURL(path string) string
- func (conf *Config) Init()
- func (conf *Config) IsDefaultLanguage(lang string) bool
- func (conf *Config) IsValidLanguage(lang string) bool
- func (conf *Config) Load(path string) error
- func (conf *Config) Reset(m map[string]interface{})
- func (conf *Config) ResetByFile(file string, r io.Reader)
- func (conf *Config) SetDebug()
- func (conf *Config) SetFilter(filter string)
- func (conf *Config) SetMode(mode string)
- func (conf *Config) SetOutput(output string)
- func (conf *Config) Unmarshal(key string, val interface{}) error
- func (conf *Config) Watch(file string) error
- func (conf *Config) With(lang string) Config
- func (conf *Config) WithWriter(w Writer) Config
- func (conf *Config) Write(file string, r io.Reader) error
- type Site
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { *viper.Viper Log *logrus.Logger Cache *sync.Map Site Site OutputDir string ContentDir string DefaultLanguage string Languages map[string]*Config // contains filtered or unexported fields }
func DefaultConfig ¶
func DefaultConfig() Config
func (*Config) GetHighlightStyle ¶
func (*Config) GetSummary ¶
func (*Config) IsDefaultLanguage ¶ added in v0.1.2
func (*Config) IsValidLanguage ¶ added in v0.1.2
func (*Config) ResetByFile ¶ added in v0.1.2
func (*Config) WithWriter ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.