From b55f1f1abec4b3e62fa6d8be9881b297942a2d18 Mon Sep 17 00:00:00 2001 From: Rand McKinney Date: Wed, 8 Jul 2026 15:59:07 -0700 Subject: [PATCH 1/2] Updates for node repo merge --- README.md | 2 +- .../packages/c2pa-node}/.gitkeep | 0 docs/c2pa-node/.gitkeep | 0 docs/js-landing.mdx | 20 ++-------------- docs/nodejs.md | 2 +- remote-docs.json | 10 +++----- sidebars.js | 24 ++++++++++++++++--- src/css/custom.css | 7 ++++++ 8 files changed, 35 insertions(+), 30 deletions(-) rename docs/{c2pa-node-v2 => c2pa-js/packages/c2pa-node}/.gitkeep (100%) delete mode 100644 docs/c2pa-node/.gitkeep diff --git a/README.md b/README.md index 08388ab..d3c5f45 100644 --- a/README.md +++ b/README.md @@ -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-swift` | [c2pa-swift](https://github.com/contentauth/c2pa-swift) | Mobile iOS/Swift 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-js/tree/main/packages/c2pa-node) | Node library docs (packages/c2pa-node in c2pa-js monorepo). | +| `c2pa-node` | [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. | diff --git a/docs/c2pa-node-v2/.gitkeep b/docs/c2pa-js/packages/c2pa-node/.gitkeep similarity index 100% rename from docs/c2pa-node-v2/.gitkeep rename to docs/c2pa-js/packages/c2pa-node/.gitkeep diff --git a/docs/c2pa-node/.gitkeep b/docs/c2pa-node/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/docs/js-landing.mdx b/docs/js-landing.mdx index f7ed71c..6112d58 100644 --- a/docs/js-landing.mdx +++ b/docs/js-landing.mdx @@ -3,22 +3,6 @@ id: js-landing title: JavaScript library --- -:::warning As of Oct 2025 -The old, deprecated `c2pa-js` repository is now in [c2pa-js-legacy](https://github.com/contentauth/c2pa-js-legacy). If you need to work with C2PA metadata in the browser, use the libraries in this repository instead of the old library. -::: - -The [c2pa-js](c2pa-js/README.md) repository is a monorepo containing the following libraries published for production use: - - -- [**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. - - -For video walkthroughs on using the JavaScript SDK, see the following lessons from the Content Credentials Foundations course: - -- [Reading and validating C2PA data with Javascript in the browser](https://learn.contentauthenticity.org/reading-and-validating-content-credentials) -- [Formatting C2PA data for L1 - L3 disclosures](https://learn.contentauthenticity.org/formatting-c2pa-data-for-display) - - +import Readme from './c2pa-js/README.md'; + null }} /> \ No newline at end of file diff --git a/docs/nodejs.md b/docs/nodejs.md index 962a5dc..8cf2abe 100644 --- a/docs/nodejs.md +++ b/docs/nodejs.md @@ -4,7 +4,7 @@ title: Node.js library custom_edit_path: c2pa-js/edit/main/packages/c2pa-node/README.md --- -import Readme from './c2pa-node-v2/readme.md'; +import Readme from './c2pa-js/packages/c2pa-node/README.md'; :::note The `c2pa-node-v2` repo has been merged into the [c2pa-js](https://github.com/contentauth/c2pa-js) repo. diff --git a/remote-docs.json b/remote-docs.json index d42f842..626a26d 100644 --- a/remote-docs.json +++ b/remote-docs.json @@ -394,6 +394,7 @@ { "_comment": "JavaScript library" }, { "repo": "contentauth/c2pa-js", + "branch": "node-pkg-doc", "path": "README.md", "dest": "docs/c2pa-js/README.md", "sidebar": { "category": "c2pa-js", "label": "c2pa-js", "order": 1 } @@ -421,17 +422,12 @@ { "repo": "contentauth/c2pa-js", "path": "packages/c2pa-node/README.md", - "dest": "docs/c2pa-node-v2/readme.md" + "dest": "docs/c2pa-js/packages/c2pa-node/README.md" }, { "repo": "contentauth/c2pa-rs", "path": "docs/supported-formats.md", - "dest": "docs/c2pa-node-v2/supported-formats.md", - "sidebar": { - "category": "c2pa-node", - "label": "Supported media formats", - "order": 1 - } + "dest": "docs/c2pa-js/supported-formats.md" }, { "_comment": "Mobile libraries - iOS (Swift)" }, diff --git a/sidebars.js b/sidebars.js index 465fa90..db58db5 100644 --- a/sidebars.js +++ b/sidebars.js @@ -271,7 +271,26 @@ const sidebars = { link: { type: 'doc', id: 'js-landing' }, collapsed: true, items: [ - ...getRemoteSidebarItems('c2pa-js'), + { + type: 'doc', + id: 'c2pa-js/packages/c2pa-web/README', + label: 'c2pa-web', + }, + { + type: 'doc', + id: 'c2pa-js/packages/c2pa-types/README', + label: 'c2pa-types', + }, + { + type: 'doc', + id: 'c2pa-js/packages/c2pa-wasm/README', + label: 'c2pa-wasm', + }, + { + type: 'doc', + id: 'c2pa-js/supported-formats', + label: 'Supported media formats', + }, { type: 'link', label: 'API documentation', @@ -287,10 +306,9 @@ const sidebars = { { type: 'category', label: 'Node.js library', - link: { type: 'doc', id: 'node-landing' }, + link: { type: 'doc', id: 'c2pa-js/packages/c2pa-node/README' }, collapsed: true, items: [ - ...getRemoteSidebarItems('c2pa-node'), { type: 'link', label: 'API documentation', diff --git a/src/css/custom.css b/src/css/custom.css index 05ea705..7f52970 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -484,6 +484,13 @@ main .row:not(:has(.theme-doc-toc-desktop)) > .col { width: 170px; } +.packages-table th:nth-child(1), +.packages-table td:nth-child(1), +.packages-table th:nth-child(3), +.packages-table td:nth-child(3) { + white-space: nowrap; +} + /* For content to be displayed only in GitHub. Typically this will be used in imported markdown files. */ .github-only { From 65b05a0ffeeacd0e8c1b5c011f72dec5c5cd6f60 Mon Sep 17 00:00:00 2001 From: Rand McKinney Date: Thu, 9 Jul 2026 11:30:50 -0700 Subject: [PATCH 2/2] remove c2pa-js branch --- remote-docs.json | 1 - 1 file changed, 1 deletion(-) diff --git a/remote-docs.json b/remote-docs.json index 626a26d..c53b850 100644 --- a/remote-docs.json +++ b/remote-docs.json @@ -394,7 +394,6 @@ { "_comment": "JavaScript library" }, { "repo": "contentauth/c2pa-js", - "branch": "node-pkg-doc", "path": "README.md", "dest": "docs/c2pa-js/README.md", "sidebar": { "category": "c2pa-js", "label": "c2pa-js", "order": 1 }