Skip to documentation
SLOP

tiny.zen.site

Reference tiny.zen site

Defined in tiny.zen.

API (12)

Actions

Public operations.

Types and contracts

Public types and contracts.

Namespaces

Public namespaces.

Values and defaults

Public values and defaults.

No direct callersNo direct callstiny.zensite
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/zen/src/site/publish.zig:147

zig
/// Site-option validation failures; rendering, theme, storage, and I/O errors propagate.pub const Error = error{    /// `source` is empty.    InvalidSource,    /// `output` is empty.    InvalidOutput,    /// `base` is nonempty but is not root-relative or ends in `/`.    InvalidBase,    /// `parent_site_base` does not own `base` at an exact route boundary.    InvalidParentSiteBase,    /// The output directory is inside the source tree.    OutputInsideSource,    /// The selected render mode is not supported by the site builder.    InvalidRenderMode,    /// A pre-publish hook requires atomic `clean` publication.    PublishHookRequiresClean,    /// The source-bearing authored route manifest requires atomic `clean` publication.    AuthoredRouteManifestRequiresClean,    /// The selected theme stylesheet conflicts with the authored route manifest.    AuthoredRouteManifestPathConflict,};

Source: lib/zen/src/site/publish.zig:17

zig
pub const max_asset_bytes = 64 * 1024 * 1024;

Source: lib/zen/src/site/publish.zig:755

zig
/// Reports whether a hosted parent owns a child base at an exact route boundary.pub fn parentSiteOwnsBase(parent_site_base: []const u8, base: []const u8) bool {    if (parent_site_base.len <= 1 or parent_site_base[0] != '/' or        parent_site_base[parent_site_base.len - 1] == '/') return false;    if (base.len == 0) return true;    return base.len > parent_site_base.len and        std.mem.startsWith(u8, base, parent_site_base) and        base[parent_site_base.len] == '/';}
Called byCallsNo direct callstiny.zenbuildSitesiteparentSiteOwnsBase
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/zen/src/root.zig:33

zig
/// Atomic static-site publication and bounded site working storage.pub const site = @import("site/root.zig");

Source: lib/zen/src/site/root.zig

zig
pub const catalog = @import("catalog/root.zig");pub const page = @import("page/root.zig");pub const path = @import("path/root.zig");const publish = @import("publish.zig");pub const max_asset_bytes = publish.max_asset_bytes;/// Hidden opt-in authored route manifest published inside the rendered site.pub const authored_route_manifest_path = catalog.manifest_path;/// Schema version stored in `authored_route_manifest_path`.pub const authored_route_manifest_version = catalog.manifest_version;/// Runs against a complete staging site before it replaces the current output.pub const BeforePublish = publish.BeforePublish;/// Bounds one source-to-site publication and controls its atomic output policy.pub const BuildOptions = publish.BuildOptions;/// Reports whether a hosted parent owns a child base at an exact route boundary.pub const parentSiteOwnsBase = publish.parentSiteOwnsBase;/// Counts pages, assets, drafts, slop, and transferred bytes after publication.pub const BuildResult = publish.BuildResult;/// Site option validation failures; other renderer and I/O errors also propagate.pub const Error = publish.Error;/// Publishes through staging; any render or pre-publish failure preserves the prior site.pub const buildSite = publish.buildSite;

Audit

Definitions4
Public names4
Members9
Version26.7.0
Revisiondaab053ee433