build

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package build provides the functionality to build the site.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(outputDir string, clean bool, workerCount int) error

Build builds the site.

func CopyPublicDirectory

func CopyPublicDirectory(outputDir string) error

CopyPublicDirectory copies the public directory to the output directory.

func CreateOutputDirectory

func CreateOutputDirectory(outputDir string) error

CreateOutputDirectory creates the output directory.

func LoadConfiguration

func LoadConfiguration() (map[string]interface{}, error)

LoadConfiguration loads the configuration.

func LoadPartials

func LoadPartials() (*partials.Partials, error)

LoadPartials loads the partials.

func LoadPlugins

func LoadPlugins() ([]plugins.Plugin, error)

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

func RunOnConfigLoadedHooks(loadedPlugins []plugins.Plugin, config []byte) ([]byte, error)

RunOnConfigLoadedHooks runs the OnConfigLoaded hooks for the given plugins.

func RunOnPostBuildHooks

func RunOnPostBuildHooks(loadedPlugins []plugins.Plugin) error

RunOnPostBuildHooks runs the OnPostBuild hooks for the given plugins.

func RunOnPreBuildHooks

func RunOnPreBuildHooks(loadedPlugins []plugins.Plugin) error

RunOnPreBuildHooks runs the OnPreBuild hooks for the given plugins.

func RunOnPublicAssetsCopiedHooks

func RunOnPublicAssetsCopiedHooks(loadedPlugins []plugins.Plugin) error

RunOnPublicAssetsCopiedHooks runs the OnPublicAssetsCopied hooks for the given plugins.

Types

This section is empty.

Jump to

Keyboard shortcuts

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