Skip to content

Commit

Permalink
Merge pull request #25 from contentauth/schema-update-02-26
Browse files Browse the repository at this point in the history
Add new refs generated from Manifest Definition schema
  • Loading branch information
crandmck authored Feb 26, 2025
2 parents 4651153 + 92282f8 commit c6db5d3
Show file tree
Hide file tree
Showing 8 changed files with 1,292 additions and 11 deletions.
1,247 changes: 1,247 additions & 0 deletions _data/ManifestDefinition_schema.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions _data/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ children:
- title: Reference with CAI styling
url: reference-cai

- title: NEW manifest definition ref.
url: manifest-def

- title: NEW manifest def w/CAI stylng
url: manifest-def-cai

- title: Reference with comments
url: annotated-manifest-reference
children:
Expand Down
2 changes: 1 addition & 1 deletion pages/annotated-manifest-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ This is a work in progress may not be accurate or complete.
Doc notes from `ManifestStore_schema_annotated.json` are highlighted below. <br/>See also: [Additional schema questions / comments](review-questions)
{: .comment}

{% include_relative reference.md annotated="true" %}
{% include_relative reference.md schema="annotated" %}
13 changes: 13 additions & 0 deletions pages/manifest-definition-cai.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: CAI manifest definition reference
permalink: manifest-def-cai
toc: false
layout: cai
---

This page is generated from the unmodified JSON schema generated from `c2pa-rs` on 02/26/2025. It **does not** currently have anything redacted per the [Review comments and questions](review-questions#schema-manual-edits).
{: .warning}

<!-- include_relative manifest-diagram.md -->

{% include_relative reference.md layout="cai" schema="ManifestDefintion" %}
12 changes: 12 additions & 0 deletions pages/manifest-definition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: CAI manifest definition reference
permalink: manifest-def
toc: false
---

This page is generated from the unmodified JSON schema generated from `c2pa-rs` on 02/26/2025. It **does not** currently have anything redacted per the [Review comments and questions](review-questions#schema-manual-edits).
{: .warning}

<!-- include_relative manifest-diagram.md -->

{% include_relative reference.md schema="ManifestDefintion" %}
2 changes: 1 addition & 1 deletion pages/manifest-ref-cai.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ layout: cai
---

{% include_relative manifest-diagram.md %}
{% include_relative reference.md layout="cai" edits="true" %}
{% include_relative reference.md layout="cai" schema="edited" %}

2 changes: 1 addition & 1 deletion pages/manifest-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ This page is generated from the unmodified JSON schema and contains some informa
{: .warning}

{% include_relative manifest-diagram.md %}
{% include_relative reference.md edits="true" %}
{% include_relative reference.md %}
19 changes: 11 additions & 8 deletions pages/reference.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
{% if include.annotated %} <!-- annotated schema -->
{% assign schema = site.data.ManifestStore_schema_annotated %}
{% case include.schema %}
{% when "annotated" %}
{% assign schema = site.data.ManifestStore_schema_annotated %}

{% elsif include.edits %} <!-- modified schema -->
{% assign schema = site.data.ManifestStore_schema_edited %}
{% when "edited" %}
{% assign schema = site.data.ManifestStore_schema_edited %}

{% else %} <!-- unmodified schema -->
{% assign schema = site.data.ManifestStore_schema %}
{% when "ManifestDefintion" %}
{% assign schema = site.data.ManifestDefinition_schema %}

{% endif %}
{% else %}
{% assign schema = site.data.ManifestStore_schema %}

{% endcase %}

## ManifestStore
## {{schema.title}}

{{schema.description}}.

Expand Down

0 comments on commit c6db5d3

Please sign in to comment.