File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11---
22id : understanding-manifest
3- title : Working with manifests
3+ title : Understanding manifests
44---
55
66## Overview
Original file line number Diff line number Diff line change 11---
2- id : common-tasks
3- title : Common tasks
2+ id : working-manifests
3+ title : Working with manifests
44---
55
6- There are a number of common tasks when working with manifests:
6+ There are a number of common tasks when working with manifests.
7+ Although the tasks and APIs are similar at a high level, the way you accomplish each task is specific to the language being used.
78
89- [ Reading manifest data] ( ./read.mdx )
910- [ Getting resources from a manifest] ( ./get-resources.mdx )
Original file line number Diff line number Diff line change @@ -18,17 +18,18 @@ Use [`c2pa.read`](../../docs/js-sdk/api/c2pa.c2pa#methods) to read manifest data
1818- ** validationStatus** : A list of any validation errors encountered. See [ Validation] ( ../../docs/js-sdk/guides/validation ) for more information.
1919
2020``` js
21- import {
createC2pa }
from ' https://cdn.jsdelivr.net/npm/[email protected] /+esm' ;
22-
21+ const version = ' 0.17.2' ;
2322const sampleImage = ' <IMAGE_URL>' ;
2423
24+ import { createC2pa } from ' https://cdn.jsdelivr.net/npm/c2pa@${version}/+esm' ;
25+
2526(async () => {
2627 // Initialize the c2pa-js SDK
2728 const c2pa = await createC2pa ({
2829 wasmSrc:
29- ' https://cdn.jsdelivr.net/npm/c2pa@0.17.2 /dist/assets/wasm/toolkit_bg.wasm' ,
30+ ' https://cdn.jsdelivr.net/npm/c2pa@${version} /dist/assets/wasm/toolkit_bg.wasm' ,
3031 workerSrc:
31- ' https://cdn.jsdelivr.net/npm/c2pa@0.17.2 /dist/c2pa.worker.min.js' ,
32+ ' https://cdn.jsdelivr.net/npm/c2pa@${version} /dist/c2pa.worker.min.js' ,
3233 });
3334
3435 try {
Original file line number Diff line number Diff line change @@ -11,12 +11,10 @@ import TabItem from '@theme/TabItem';
1111 This is how to write a manifest using Python.
1212 </TabItem >
1313
14- { ' ' }
1514<TabItem value = " node" label = " Node.js" >
1615 This is how to write a manifest using Node.js.
1716</TabItem >
1817
19- { ' ' }
2018<TabItem value = " cpp" label = " C++" >
2119 This is how to write a manifest using C++.
2220</TabItem >
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const sidebars = {
2424 } ,
2525 {
2626 type : 'category' ,
27- label : 'Working with manifests' ,
27+ label : 'Understanding manifests' ,
2828 link : { type : 'doc' , id : 'manifest/understanding-manifest' } ,
2929 collapsed : true ,
3030 items : [
@@ -63,8 +63,8 @@ const sidebars = {
6363
6464 {
6565 type : 'category' ,
66- label : 'Common tasks ' ,
67- link : { type : 'doc' , id : 'tasks/common-tasks ' } ,
66+ label : 'Working with manifests ' ,
67+ link : { type : 'doc' , id : 'tasks/working-manifests ' } ,
6868 collapsed : true ,
6969 items : [
7070 {
You can’t perform that action at this time.
0 commit comments