struct

Hwaro::Config::Options::BuildOptions

Inherits Struct / Value / Object

Constructors

new(output_dir : String = "public", base_url : String | Nil = nil, drafts : Bool = false, include_expired : Bool = false, include_future : Bool = false, minify : Bool = false, parallel : Bool = true, workers : Int32 = 0, cache : Bool = false, full : Bool = false, highlight : Bool = true, verbose : Bool = false, profile : Bool = false, debug : Bool = false, error_overlay : Bool = false, cache_busting : Bool = true, stream : Bool = false, memory_limit : String | Nil = nil, env : String | Nil = nil, skip_og_image : Bool = false, skip_image_processing : Bool = false, preserve_output : Bool = false, fast_start : Bool = false, fast_start_count : Int32 = 20, serve_mode : Bool = false)
Source

Instance methods

base_url
Source
base_url=(base_url : String | Nil)
Source
batch_size
Source
cache
Source
cache=(cache : Bool)
Source
cache_busting
Source
cache_busting=(cache_busting : Bool)
Source
debug
Source
debug=(debug : Bool)
Source
drafts
Source
drafts=(drafts : Bool)
Source
env=(env : String | Nil)
Source
error_overlay
Source
error_overlay=(error_overlay : Bool)
Source
fast_start

When set (dev-server only), render only the homepage + the N most recent pages on the initial pass; the remaining pages are stashed on the Builder and rendered by a background fiber after the server is already serving. Drops "ready" time on large sites from O(all) to O(N). Always paired with fast_start_count.

Source
fast_start=(fast_start : Bool)

When set (dev-server only), render only the homepage + the N most recent pages on the initial pass; the remaining pages are stashed on the Builder and rendered by a background fiber after the server is already serving. Drops "ready" time on large sites from O(all) to O(N). Always paired with fast_start_count.

Source
fast_start_count
Source
fast_start_count=(fast_start_count : Int32)
Source
full
Source
full=(full : Bool)
Source
highlight
Source
highlight=(highlight : Bool)
Source
include_expired
Source
include_expired=(include_expired : Bool)
Source
include_future
Source
include_future=(include_future : Bool)
Source
memory_limit
Source
memory_limit=(memory_limit : String | Nil)
Source
minify
Source
minify=(minify : Bool)
Source
output_dir
Source
output_dir=(output_dir : String)
Source
parallel
Source
parallel=(parallel : Bool)
Source
preserve_output

Keep existing output files between rebuilds. Used by hwaro serve's watch-triggered rebuilds so repeated full rebuilds don't wipe the already-processed resized images (see ImageHooks#process_images mtime-skip logic, which only works when destinations survive).

Source
preserve_output=(preserve_output : Bool)

Keep existing output files between rebuilds. Used by hwaro serve's watch-triggered rebuilds so repeated full rebuilds don't wipe the already-processed resized images (see ImageHooks#process_images mtime-skip logic, which only works when destinations survive).

Source
profile
Source
profile=(profile : Bool)
Source
serve_mode

True when this build is being run as part of hwaro serve (dev server). Hooks can use this to change behavior (e.g. lazy OG generation).

Source
serve_mode=(serve_mode : Bool)

True when this build is being run as part of hwaro serve (dev server). Hooks can use this to change behavior (e.g. lazy OG generation).

Source
skip_image_processing
Source
skip_image_processing=(skip_image_processing : Bool)
Source
skip_og_image
Source
skip_og_image=(skip_og_image : Bool)
Source
stream
Source
stream=(stream : Bool)
Source
streaming?
Source
verbose
Source
verbose=(verbose : Bool)
Source
workers

Number of concurrent render workers (fibers) for the parallel render phase. 0 = auto (CPU-based, the default). Lowering it (e.g. --jobs 2) reduces effective render parallelism, which on template/Crinja-heavy sites is often FASTER: those pages allocate many small objects, and past ~2 workers Boehm's global allocation lock contends harder than the extra cores help. Markdown-heavy sites keep scaling, so the default stays auto. Never changes output — only render concurrency.

Source
workers=(workers : Int32)

Number of concurrent render workers (fibers) for the parallel render phase. 0 = auto (CPU-based, the default). Lowering it (e.g. --jobs 2) reduces effective render parallelism, which on template/Crinja-heavy sites is often FASTER: those pages allocate many small objects, and past ~2 workers Boehm's global allocation lock contends harder than the extra cores help. Markdown-heavy sites keep scaling, so the default stays auto. Never changes output — only render concurrency.

Source