Skip to content
Margo dev

Site manifest schema

#

This schema describes margo-manifest.json, the exact publication identity and route/artifact manifest emitted by a configured site build.

Margo site manifest v1

The exact publication identity emitted as margo-manifest.json.

  • basePath string
  • baseURL string
  • configVersion integer
    Constraints
    minimum=1
  • digest string required

    Domain-separated digest of the artifact entries.

    Constraints
    pattern="^[0-9a-f]{64}$"
  • documentStyleDigest string
  • entries array required

    Sorted site-relative artifact paths and their exact digests.

    • *
      • digest string required
        Constraints
        pattern="^[0-9a-f]{64}$"
      • path string required
        Constraints
        minLength=1
  • layout string
  • layoutSchemaHash string
  • policy string

    Digest of the trusted host policy when one was supplied.

  • routes array
    • *
      • actions object
      • alternates array
      • authors array
      • canonical string
      • description string
      • documentDigest string
      • family string
      • imageOverflow string
      • layout string
      • locale string
      • modifiedAt string
      • output string required
      • publishedAt string
      • source string required
      • structuredData object

        Serialized JSON-LD emitted in the page head.

      • tags array
      • title string
  • schemaVersion value required
    Constraints
    const="margo-site-manifest/v1"

Used by

  • margo site publication output.
  • Deployment tooling that needs route and asset provenance.
  • margo schema site-manifest, which emits the exact embedded bytes.