Alcove CMS
Ru

Part V, Inspection

Validation

One check before every build reports every problem it finds.

Every build starts with a check, and alcove -check -dir ./content runs only the check. It reports every problem it finds, each with the file it is in, and the build stops if there is one. While the server runs, a failed rebuild leaves the previous site online.

It covers the YAML schemas, unknown alcoves, nooks and filters, include cycles, placeholders without a value, duplicate slugs, redirect loops, forms and posts, and every inline row against its declared fields.

The live result is an alcove with declared fields. Below it are the real messages the check printed for three small mistakes in it.

Live result This page is a static file, built once.

Source the files behind the result above

content/alcoves/demo_checked/alcove.yaml

fields:
  - name: label
    type: text
    required: true
  - name: size
    type: select
    options: [small, large]
    required: true
  - name: href
    type: url
    required: true
tiles:
  - condition: "size == 'large'"
    file: tile-large.html
  - file: tile.html
data:
  - label: Documentation
    size: large
    href: /docs/
  - label: Guestbook
    size: small
    href: /docs/sql-posts/
  - label: Debug view
    size: small
    href: /docs/debug/