Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterConfig ¶
type AdapterConfig struct {
Name AdapterName `toml:"name"`
Config map[string]interface{} `toml:"config"`
}
type AdapterName ¶
type AdapterName string
const ( AdapterStandalone AdapterName = "standalone" AdapterCloudflare AdapterName = "cloudflare" AdapterNetlify AdapterName = "netlify" AdapterVercel AdapterName = "vercel" )
type Config ¶
type Config struct {
Site string `toml:"site"`
Base string `toml:"base"`
OutDir string `toml:"outDir"`
SrcDir string `toml:"srcDir"`
PackageManager string `toml:"packageManager"`
Output OutputConfig `toml:"output"`
Server ServerConfig `toml:"server"`
Adapter AdapterConfig `toml:"adapter"`
Lifecycle LifecycleConfig `toml:"lifecycle"`
Plugins []PluginConfig `toml:"plugins"`
Markdown MarkdownConfig `toml:"markdown"`
Content ContentConfig `toml:"content"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
func LoadFromDir ¶
type ContentConfig ¶
type LifecycleConfig ¶
type MarkdownConfig ¶
type OutputConfig ¶
type OutputConfig struct {
Type OutputType `toml:"type"`
}
type OutputType ¶
type OutputType string
const ( OutputStatic OutputType = "static" OutputServer OutputType = "server" OutputHybrid OutputType = "hybrid" )
type PluginConfig ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.