Skip to content

Commit

Permalink
chore: add json instance link
Browse files Browse the repository at this point in the history
  • Loading branch information
kshychko committed Sep 5, 2024
1 parent 835d168 commit 8048777
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
24 changes: 6 additions & 18 deletions _data/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,17 @@
"version": "v0.3.10",
"date": "2024-06-24",
"notes": "v0.3.10 : bug fix in sample values and schema references",
"context": "untp-dfr-context-0.3.10.jsonld",
"schema": "untp-dfr-schema-0.3.10.json"
"context": "0.3.10/",
"schema": "untp-dfr-schema-0.3.10.json",
"instance": "untp-dfr-instance-0.3.10.json"
},
{
"version": "v0.3.9",
"date": "2024-06-24",
"notes": "v0.3.9 : change publishing UNRI from test to production domain",
"context": "untp-dfr-context-0.3.9.jsonld",
"schema": "untp-dfr-schema-0.3.9.json"
},
{
"version": "v0.3.0",
"date": "2024-06-24",
"notes": "v0.3.0 : early release aligned with untp core v0.3.6",
"context": "untp-dfr-context-0.3.0.jsonld",
"schema": "untp-dfr-schema-0.3.0.json"
},
{
"version": "v0.1.0",
"date": "2024-06-24",
"notes": "v0.1.0 : Initial Draft",
"context": "untp-dfr-context-0.1.0.jsonld",
"schema": "untp-dfr-schema-0.1.0.json"
"context": "0.3.9/",
"schema": "untp-dfr-schema-0.3.9.json",
"instance": "untp-dfr-instance-0.3.9.json"
}
]
}
Expand Down
12 changes: 10 additions & 2 deletions pages/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h1 class="home-content__title">UNTP Digital Facility Record Vocabulary</h1>
</li>
</ul>

{%- assign jsonld_context_url = '.jsonld' | prepend: site.versions.untp-dfr | prepend: '/untp-dfr-context-' | prepend: site.artefacts | prepend: site.dest -%}
{%- assign jsonld_context_url = '/' | prepend: site.versions.untp-dfr | prepend: '/' | prepend: site.artefacts | prepend: site.dest -%}
<h2 class="home-content__subtitle">Contexts</h2>
<p>Current JSON-LD Context file is available here:</p>
<p>
Expand All @@ -113,12 +113,20 @@ <h2 class="home-content__subtitle">Content Negotiation</h2>
</div>

{%- assign json_schema_url = '.json' | prepend: site.versions.untp-dfr | prepend: '/untp-dfr-schema-' | prepend: site.artefacts | prepend: site.dest -%}
{%- assign json_instance_url = '.json' | prepend: site.versions.untp-dfr | prepend: '/untp-dfr-instance-' | prepend: site.artefacts | prepend: site.dest -%}

<h2 class="home-content__subtitle">JSON Shcemas</h2>
<h2 class="home-content__subtitle">JSON Schemas</h2>
<p>Current JSON Schema file is available here:</p>
<p>
<a class="link-box" href="{{ json_schema_url }}">{{ json_schema_url }}</a>
</p>
<p>For all versions checkout the <a href="{{ 'versions' | absolute_url}}">versions page</a>.</p>

<h2 class="home-content__subtitle">JSON Instances</h2>
<p>Current JSON Schema file is available here:</p>
<p>
<a class="link-box" href="{{ json_instance_url }}">{{ json_instance_url }}</a>
</p>
<p>For all versions checkout the <a href="{{ 'versions' | absolute_url}}">versions page</a>.</p>
</div>
</div>
4 changes: 4 additions & 0 deletions pages/versions.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ <h2>Major version: {{ major.major}}</h2>
<th>Notes</th>
<th>JSON-LD Context</th>
<th>JSON Schema</th>
<th>JSON Instance</th>
</tr>
</thead>
<tbody>
Expand All @@ -38,6 +39,9 @@ <h2>Major version: {{ major.major}}</h2>
<td>
<p><a href="{{ version.schema | prepend: site.data.versions.prefix | prepend: site.dest }}"> View</a></p>
</td>
<td>
<p><a href="{{ version.instance | prepend: site.data.versions.prefix | prepend: site.dest }}"> View</a></p>
</td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 8048777

Please sign in to comment.