Skip to content

Commit b350c74

Browse files
committed
Add partials, fix layouts, etc
1 parent 06e42bd commit b350c74

9 files changed

+33
-14
lines changed

_data/sidebar.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ url:
33
children:
44

55
- title: Manifest Definition
6-
url: manifest-def
6+
url: manifest-def-ref
77
children:
88

99
- title: Manifest def - CAI stylng
1010
url: manifest-def-cai
1111

1212
- title: Reader
13-
url: reader
13+
url: reader-ref
1414
children:
1515

1616
- title: Reader - CAI styling

_layouts/cai-partial.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{{ content }}
2+

copy-html.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cp _site/manifest-def.html ../opensource.contentauth.org/docs/manifest/json-ref/
2+
cp _site/reader.html ../opensource.contentauth.org/docs/manifest/json-ref/

pages/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ This is an experimental site. It is an incomplete work in progress and may not b
1010
This is a reference for the [Content Authenticity Initiative (CAI)](https://contentauthenticity.org/) manifest store JSON structure. It is based on the definition of the manifest store in the [C2PA technical specification](https://c2pa.org/specifications/specifications/1.3/specs/C2PA_Specification.html), but is not exactly the same. The C2PA specification defines a binary structure, but [this reference](manifest-reference) is for the JSON structure that the [CAI open source SDKs](https://opensource.contentauthenticity.org/docs/introduction) use to work with manifests.
1111

1212
For instructions on how to update the JSON schema used, see the README in the source repo: <https://github.com/contentauth/json-manifest-reference>.
13+
14+
15+
These are the generated HTML partials to copy to opensource.contentauthenticity.org repo. Note they are NOT styled for standalone viewing:
16+
17+
- [ManifestDefinition partial](/manifest-def)
18+
- [Reader partial](/reader)

pages/manifest-def-partial.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: CAI manifest definition reference (partial)
3+
permalink: manifest-def
4+
toc: false
5+
layout: cai-partial
6+
---
7+
8+
{% include_relative reference.md layout="cai" schema="ManifestDefintion" %}

pages/manifest-definition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: CAI manifest definition reference
3-
permalink: manifest-def
3+
permalink: manifest-def-ref
44
toc: false
55
---
66

pages/reader-partial.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Reader reference
3+
permalink: reader
4+
toc: false
5+
layout: cai-partial
6+
---
7+
8+
{% include_relative reference.md layout="cai" schema="reader" %}

pages/reader.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Reader JSON reference
3-
permalink: reader
3+
permalink: reader-ref
44
toc: false
55
---
66

pages/reference.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,12 @@
4545
{% assign required_properties = schema.required %}
4646
<tr>
4747
<td class="manifest-ref-table">{{property.first}}</td>
48-
4948
<!-- Type -->
5049
<td class="manifest-ref-table">
5150
{% if property.last.type=="object" %}
5251
Object
53-
5452
{% else %}
55-
5653
{% include type.html prop_info=property.last %}
57-
5854
{% endif %}
5955
</td>
6056

@@ -84,19 +80,16 @@
8480
## Definitions
8581

8682
<!-- TOC-like links -->
87-
8883
<table style="border: 0;" width="900">
8984
<tbody>
9085
<tr>
9186
<td style="border: 0; vertical-align: top;">
9287
{%- for term in schema.definitions -%}
93-
{% assign i = forloop.index0|modulo: 7 %}
88+
{% assign i = forloop.index0|modulo: 8 %}
9489
<a href="{{term.first | slugify | prepend: "#"}}">{{term.first}}</a> <br/>
95-
{% if i == 6 %}
90+
{% if i == 7 and forloop.last == false %}
9691
</td>
97-
{% unless forloop.last %}
9892
<td style="border: 0; vertical-align: top;">
99-
{% endunless %}
10093
{% endif %}
10194
{% endfor %}
10295
</td>
@@ -106,7 +99,7 @@
10699
{% for term in schema.definitions %}
107100

108101
{% if include.layout=="cai" %}
109-
<a class="top-scroll-btn" title="Go to top" href="#manifeststore">Scroll To Top</a>
102+
<a class="top-scroll-btn" title="Go to Definitions" href="#definitions">Definitions</a>
110103
{% endif %}
111104

112105
### {{term.first}}

0 commit comments

Comments
 (0)