Versions in this module Expand all Collapse all v0 v0.1.0 Apr 12, 2024 Changes in this version + type BuildConfig struct + Dir string + func (c *BuildConfig) GetDir() string + type DirConfig interface + GetDir func() string + type Extension interface + Name func() string + Register func(p *Project, c map[string]any) error + type ExtensionConfig struct + Config map[string]any + Name string + func (ex *ExtensionConfig) UnmarshalYAML(value *yaml.Node) error + type MiddlewareConfig struct + Extension string + Path string + type Project struct + func New(opts ...ProjectOption) *Project + func (p *Project) Generate() error + type ProjectConfig struct + Build BuildConfig + Name string + Site SiteConfig + Theme ThemeConfig + Uses []ExtensionConfig + func LoadConfigFile(projectFS afero.Fs) (*ProjectConfig, error) + type ProjectOption interface + Apply func(*Project) error + type ProjectOptionFunc func(*Project) error + func WithConfig(config *ProjectConfig) ProjectOptionFunc + func WithExtensions(extensions ...Extension) ProjectOptionFunc + func WithParserOptions(opts ...parser.ParserOption) ProjectOptionFunc + func WithRendererOptions(opts ...renderer.RendererOption) ProjectOptionFunc + func WithWorkDir(dir string) ProjectOptionFunc + func (apply ProjectOptionFunc) Apply(p *Project) error + type SiteConfig struct + Dir string + func (c *SiteConfig) GetDir() string + type ThemeConfig struct + Dir string + func (c *ThemeConfig) GetDir() string