Documentation
¶
Overview ¶
Package build provides the functionality to build the site.
Index ¶
- func Build(outputDir string, clean bool, workerCount int) error
- func CopyPublicDirectory(outputDir string) error
- func CreateOutputDirectory(outputDir string) error
- func LoadConfiguration() (map[string]interface{}, error)
- func LoadPartials() (*partials.Partials, error)
- func LoadPlugins() ([]plugins.Plugin, error)
- func ProcessContent(outputDir string, loadedConfig map[string]interface{}, t *partials.Partials, ...) error
- func ProcessContentWithProcessor(contentProcessor *content.Content, loadedConfig map[string]interface{}, ...) error
- func RunOnConfigLoadedHooks(loadedPlugins []plugins.Plugin, config []byte) ([]byte, error)
- func RunOnPostBuildHooks(loadedPlugins []plugins.Plugin) error
- func RunOnPreBuildHooks(loadedPlugins []plugins.Plugin) error
- func RunOnPublicAssetsCopiedHooks(loadedPlugins []plugins.Plugin) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyPublicDirectory ¶
CopyPublicDirectory copies the public directory to the output directory.
func CreateOutputDirectory ¶
CreateOutputDirectory creates the output directory.
func LoadConfiguration ¶
LoadConfiguration loads the configuration.
func LoadPartials ¶
LoadPartials loads the partials.
func LoadPlugins ¶
LoadPlugins loads the build plugins.
func ProcessContent ¶
func ProcessContent(outputDir string, loadedConfig map[string]interface{}, t *partials.Partials, loadedPlugins []plugins.Plugin, workerCount int) error
ProcessContent processes the content.
func ProcessContentWithProcessor ¶
func ProcessContentWithProcessor(contentProcessor *content.Content, loadedConfig map[string]interface{}, toRebuild map[string]bool, workerCount int) error
ProcessContentWithProcessor processes the content with a given processor.
func RunOnConfigLoadedHooks ¶
RunOnConfigLoadedHooks runs the OnConfigLoaded hooks for the given plugins.
func RunOnPostBuildHooks ¶
RunOnPostBuildHooks runs the OnPostBuild hooks for the given plugins.
func RunOnPreBuildHooks ¶
RunOnPreBuildHooks runs the OnPreBuild hooks for the given plugins.
func RunOnPublicAssetsCopiedHooks ¶
RunOnPublicAssetsCopiedHooks runs the OnPublicAssetsCopied hooks for the given plugins.
Types ¶
This section is empty.