Skip to content
Margo dev

Site report schema

#

This schema describes the report produced by margo site --diagnostics json, including the staged publication result and artifact counts.

Margo site report v1

The JSON envelope emitted by margo site --diagnostics json.

  • artifacts integer required

    Number of published artifacts.

    Constraints
    minimum=0
  • manifest string required

    Digest of the exact artifact manifest.

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

    Source-to-output page records.

    • *
      • actions object
        • markdown boolean
        • pdf boolean
        • pdfMode string
          Constraints
          enum=["pre-rendered","client"]
        • printChartData boolean
      • alternates array
        • *
          • locale string required
          • url string required
      • authors array
      • canonical string
      • description string
      • documentDigest string
        Constraints
        pattern="^[0-9a-f]{64}$"
      • family string
      • imageOverflow string
        Constraints
        enum=["limit","allow"]
      • layout string
      • locale string
      • modifiedAt string
      • output string required

        Site-relative generated HTML path.

      • publishedAt string
      • source string required

        Site-relative Markdown source path.

      • structuredData object

        Serialized JSON-LD emitted in the page head.

      • tags array
      • title string
  • policy string

    Digest of the trusted host policy when one was supplied.

  • schemaVersion value required
    Constraints
    const="margo-site-report/v1"

Used by

  • The margo site JSON output.
  • Build pipelines that verify a publication before deployment.
  • margo schema site-report, which emits the exact embedded bytes.