class

Hwaro::Models::ContentSchemaConfig

Inherits Reference < Object

One [[content.schema]] entry: the fields every regular page in the matching sections must satisfy. See Content::FrontMatterSchema.

Constants

KEYS = ["sections", "strict", "fields"] of ::String

Constructors

new(sections : Array(String), strict : Bool, fields : Array(Hwaro::Models::ContentSchemaField))
Source

Instance methods

fields
Source
matches?(section : String) : Bool

section is Page#section ("" for root pages). A pattern ending in /** also matches the directory itself, so "docs/**" covers docs/intro.md as well as docs/guide/intro.md.

Source
sections
Source
strict
Source