Astral.Config (Astral v0.1.0)

Copy Markdown View Source

Normalized build configuration for an Astral site.

Paths are stored as absolute paths so downstream modules can work without repeatedly resolving them against the site root.

Summary

Functions

Build a normalized config from keyword options.

Declare an Astral site configuration.

Types

t()

@type t() :: %Astral.Config{
  asset_entry: String.t(),
  asset_hash: boolean(),
  asset_outdir: String.t(),
  asset_url_prefix: String.t(),
  assets: String.t(),
  layout: String.t(),
  layouts: String.t(),
  outdir: String.t(),
  pages: String.t(),
  public: String.t(),
  root: String.t()
}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()

Build a normalized config from keyword options.

site(list)

(macro)

Declare an Astral site configuration.