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 1
1
---
2
2
id : understanding-manifest
3
- title : Working with manifests
3
+ title : Understanding manifests
4
4
---
5
5
6
6
## Overview
Original file line number Diff line number Diff line change 1
1
---
2
- id : common-tasks
3
- title : Common tasks
2
+ id : working-manifests
3
+ title : Working with manifests
4
4
---
5
5
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.
7
8
8
9
- [ Reading manifest data] ( ./read.mdx )
9
10
- [ 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
18
18
- ** validationStatus** : A list of any validation errors encountered. See [ Validation] ( ../../docs/js-sdk/guides/validation ) for more information.
19
19
20
20
``` js
21
- import {
createC2pa }
from ' https://cdn.jsdelivr.net/npm/[email protected] /+esm' ;
22
-
21
+ const version = ' 0.17.2' ;
23
22
const sampleImage = ' <IMAGE_URL>' ;
24
23
24
+ import { createC2pa } from ' https://cdn.jsdelivr.net/npm/c2pa@${version}/+esm' ;
25
+
25
26
(async () => {
26
27
// Initialize the c2pa-js SDK
27
28
const c2pa = await createC2pa ({
28
29
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' ,
30
31
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' ,
32
33
});
33
34
34
35
try {
Original file line number Diff line number Diff line change @@ -11,12 +11,10 @@ import TabItem from '@theme/TabItem';
11
11
This is how to write a manifest using Python.
12
12
</TabItem >
13
13
14
- { ' ' }
15
14
<TabItem value = " node" label = " Node.js" >
16
15
This is how to write a manifest using Node.js.
17
16
</TabItem >
18
17
19
- { ' ' }
20
18
<TabItem value = " cpp" label = " C++" >
21
19
This is how to write a manifest using C++.
22
20
</TabItem >
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const sidebars = {
24
24
} ,
25
25
{
26
26
type : 'category' ,
27
- label : 'Working with manifests' ,
27
+ label : 'Understanding manifests' ,
28
28
link : { type : 'doc' , id : 'manifest/understanding-manifest' } ,
29
29
collapsed : true ,
30
30
items : [
@@ -63,8 +63,8 @@ const sidebars = {
63
63
64
64
{
65
65
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 ' } ,
68
68
collapsed : true ,
69
69
items : [
70
70
{
You can’t perform that action at this time.
0 commit comments