build

package
v0.0.0-...-742e7c9 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, dir, out string, flags Flags) error

Build builds the site rooted at dir into the directory named by out. If out is empty, the site is built into outSubdir under the site directory.

Types

type Flags

type Flags int

Flags specifies details of how the site should be built.

const (
	// PrettyPrint indicates that HTML output should be pretty-printed.
	PrettyPrint Flags = 1 << iota
	// Display a diff of changes and prompt before replacing the existing output dir.
	// Only has an effect when Build's out argument is empty.
	Prompt
	// Serve indicates that the new output dir should be served over HTTP while the diff is displayed.
	// Only has an effect when Prompt is true and Build's out argument is empty.
	Serve
	// Validate indicates that HTML and CSS output should be validated.
	Validate
)

Jump to

Keyboard shortcuts

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