Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This table summarizes the content that this script fetches from other repos.
| `c2pa-cpp` | [c2pa-cpp](https://github.com/contentauth/c2pa-cpp) | C++ library docs. |
| `c2pa-ios` | [c2pa-ios](https://github.com/contentauth/c2pa-ios) | Mobile iOS library docs. |
| `c2pa-android` | [c2pa-android](https://github.com/contentauth/c2pa-android) | Android library docs. |
| `c2pa-node-v2` | [c2pa-node](https://github.com/contentauth/c2pa-node-v2) | Node library docs. |
| `c2pa-node-v2` | [c2pa-node](https://github.com/contentauth/c2pa-js/tree/main/packages/c2pa-node) | Node library docs (packages/c2pa-node in c2pa-js monorepo). |
| `c2pa-node-example` | [c2pa-node-example](https://github.com/contentauth/c2pa-node-example) | Node example app.|
| `c2pa-python` | [c2pa-python](https://github.com/contentauth/c2pa-python) | Python library docs. |
| `c2pa-python example` | [c2pa-python-example](https://github.com/contentauth/c2pa-python-example) | Python example app. |
Expand Down
2 changes: 1 addition & 1 deletion docs/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ All the open-source CAI code is hosted in GitHub in the [CAI GitHub organization
- **CLI tool**: [c2patool](https://github.com/contentauth/c2patool)
- **JavaScript library**: [c2pa-web](https://github.com/contentauth/c2pa-web)
- **Python library**: [c2pa-python](https://github.com/contentauth/c2pa-python)
- **Node.js library**: [c2pa-node-v2](https://github.com/contentauth/c2pa-node-v2)
- **Node.js library**: [c2pa-node](https://github.com/contentauth/c2pa-js/tree/main/packages/c2pa-node)
- **C++ library**: [c2pa-cpp](https://github.com/contentauth/c2pa-cpp)

If you think you've found a bug or want to request a feature, please open an issue in the appropriate repository.
Expand Down
2 changes: 1 addition & 1 deletion docs/js-landing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The [c2pa-js](c2pa-js/README.md) repository is a monorepo containing the followi

- [**c2pa-web**](c2pa-js/packages/c2pa-web/README.md): Library for C2PA metadata in the browser. Import and use this package in browser client JavaScript code.
- [**c2pa-wasm**](c2pa-js/packages/c2pa-wasm/README.md): WebAssembly bindings for c2pa-rs, built with wasm-bindgen. They power c2pa-web; most applications should use c2pa-web instead of calling the bindings directly.
- [**c2pa-types**](c2pa-js/packages/c2pa-types/README.md): TypeScript types generated from c2pa-rs structs for use by c2pa-web and c2pa-node-v2.
- [**c2pa-types**](c2pa-js/packages/c2pa-types/README.md): TypeScript types generated from c2pa-rs structs for use by c2pa-web and c2pa-node.


For video walkthroughs on using the JavaScript SDK, see the following lessons from the Content Credentials Foundations course:
Expand Down
4 changes: 2 additions & 2 deletions docs/nodejs.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
id: node-landing
title: Node.js library
custom_edit_path: c2pa-node-v2/edit/main/README.md
custom_edit_path: c2pa-js/edit/main/packages/c2pa-node/README.md
---

import Readme from './c2pa-node-v2/readme.md';

:::note
The old [c2pa-node library](c2pa-node/readme.md) is still available, but it's deprecated and will no longer be updated or supported. Move to the new `c2pa-node-v2` library as soon as possible!
The old [c2pa-node library](c2pa-node/readme.md) is deprecated and will no longer be updated or supported.
:::

<Readme components={{ h1: () => null }} />
2 changes: 1 addition & 1 deletion docs/tasks/node/_node-archives.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ const ingredients = active?.ingredients ?? [];

### Ingredient archives

To build a reusable ingredient catalog, add ingredients (stable `instance_id` values help later lookup), then call `toArchive`. Consumers read the archive with `Reader` and merge selected ingredients into a signing `Builder`, transferring thumbnails and `manifest_data` URIs with `resourceToAsset` / `addResource` as in the [@contentauth/c2pa-node README](https://github.com/contentauth/c2pa-node-v2#adding-ingredients-from-archives-c2pa-files).
To build a reusable ingredient catalog, add ingredients (stable `instance_id` values help later lookup), then call `toArchive`. Consumers read the archive with `Reader` and merge selected ingredients into a signing `Builder`, transferring thumbnails and `manifest_data` URIs with `resourceToAsset` / `addResource` as in the [@contentauth/c2pa-node README](https://github.com/contentauth/c2pa-js/tree/main/packages/c2pa-node#adding-ingredients-from-archives-c2pa-files).
2 changes: 1 addition & 1 deletion docs/tasks/node/_node-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ await builder.signAsync(

Replace `customSign` with your implementation that returns the detached signature bytes for the C2PA claim.

For identity assertions (CAWG), see `IdentityAssertionBuilder` and `IdentityAssertionSigner` in the [c2pa-node-v2 README](https://github.com/contentauth/c2pa-node-v2#identity-assertion-components).
For identity assertions (CAWG), see `IdentityAssertionBuilder` and `IdentityAssertionSigner` in the [c2pa-node README](https://github.com/contentauth/c2pa-js/tree/main/packages/c2pa-node#identity-assertion-components).
6 changes: 5 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ const externalRepos = {
'c2pa-android': { repo: 'c2pa-android', path: '', org: 'contentauth' },
'c2pa-js': { repo: 'c2pa-js', path: '', org: 'contentauth' },

'c2pa-node-v2': { repo: 'c2pa-node', path: '', org: 'contentauth' },
'c2pa-node': {
repo: 'c2pa-js',
path: 'packages/c2pa-node/',
org: 'contentauth',
},
'c2pa-python': { repo: 'c2pa-python', path: '', org: 'contentauth' },
'c2pa-python-example': {
repo: 'c2pa-python-example',
Expand Down
8 changes: 4 additions & 4 deletions remote-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -417,18 +417,18 @@
"sidebar": { "category": "c2pa-js", "label": "c2pa-wasm", "order": 4 }
},

{ "_comment": "Node.js library" },
{ "_comment": "Node.js library (packages/c2pa-node in c2pa-js monorepo)" },
{
"repo": "contentauth/c2pa-node-v2",
"path": "README.md",
"repo": "contentauth/c2pa-js",
"path": "packages/c2pa-node/README.md",
"dest": "docs/c2pa-node-v2/readme.md"
},
{
"repo": "contentauth/c2pa-rs",
"path": "docs/supported-formats.md",
"dest": "docs/c2pa-node-v2/supported-formats.md",
"sidebar": {
"category": "c2pa-node-v2",
"category": "c2pa-node",
"label": "Supported media formats",
"order": 1
}
Expand Down
8 changes: 4 additions & 4 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const sidebars = {
{
type: 'link',
label: 'API documentation',
href: 'https://contentauth.github.io/c2pa-js/',
href: 'https://contentauth.github.io/c2pa-js/modules/_contentauth_c2pa-web.html',
},
{
type: 'link',
Expand All @@ -290,16 +290,16 @@ const sidebars = {
link: { type: 'doc', id: 'node-landing' },
collapsed: true,
items: [
...getRemoteSidebarItems('c2pa-node-v2'),
...getRemoteSidebarItems('c2pa-node'),
{
type: 'link',
label: 'API documentation',
href: 'https://contentauth.github.io/c2pa-node-v2/',
href: 'https://contentauth.github.io/c2pa-js/modules/_contentauth_c2pa-node.html',
},
{
type: 'link',
label: 'GitHub',
href: 'https://github.com/contentauth/c2pa-node-v2/tree/main',
href: 'https://github.com/contentauth/c2pa-js/tree/main/packages/c2pa-node',
},
],
},
Expand Down
Loading