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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/docs/c2patool/*.md
/docs/c2patool/docs/*.md
/docs/c2pa-node/*.md
/docs/c2pa-node-v2/*.md
/docs/c2pa-node-example/*.md
/docs/c2pa-node/docs/*.md
/docs/c2pa-python/*.md
Expand Down
File renamed without changes.
Empty file added docs/c2pa-node-v2/.gitkeep
Empty file.
10 changes: 10 additions & 0 deletions docs/nodejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
id: node-landing
title: Node.js library
---

**Sept 2025**: A new Node.js library has been released. We are working on adding documentation for the new library. Please bear with us!

:::note
You can continue to [install and use the old library](c2pa-node/readme.md) the same as before, but it will no longer be updated or supported.
:::
21 changes: 6 additions & 15 deletions scripts/fetch-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,32 +105,23 @@ const readmes = [
repo: 'contentauth/c2pa-service-example',
path: 'README.md',
},
// Node.js lib
// Old Node.js lib
{
dest: resolve(__dirname, '../docs/c2pa-node/readme.md'),
repo: 'contentauth/c2pa-node',
path: 'README.md',
},
// Node.js lib
{
dest: resolve(__dirname, '../docs/c2pa-node/docs/usage.md'),
repo: 'contentauth/c2pa-node',
path: 'docs/usage.md',
dest: resolve(__dirname, '../docs/c2pa-node-v2/readme.md'),
repo: 'contentauth/c2pa-node-v2',
path: 'README.md',
},
{
dest: resolve(__dirname, '../docs/c2pa-node/docs/supported-formats.md'),
dest: resolve(__dirname, '../docs/c2pa-node-v2/supported-formats.md'),
repo: 'contentauth/c2pa-rs',
path: 'docs/supported-formats.md',
},
{
dest: resolve(__dirname, '../docs/c2pa-node/docs/release-notes.md'),
repo: 'contentauth/c2pa-node',
path: 'docs/release-notes.md',
},
{
dest: resolve(__dirname, '../docs/c2pa-node-example/readme.md'),
repo: 'contentauth/c2pa-node-example',
path: 'README.md',
},
// Python lib
{
dest: resolve(__dirname, '../docs/c2pa-python/readme.md'),
Expand Down
55 changes: 33 additions & 22 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,33 +152,44 @@ const sidebars = {
{
type: 'category',
label: 'Node.js',
link: { type: 'doc', id: 'c2pa-node/readme' },
link: { type: 'doc', id: 'node-landing' },
collapsed: true,
items: [
{
type: 'doc',
id: 'c2pa-node/docs/usage',
label: 'Using the Node library',
},
{
type: 'doc',
id: 'c2pa-node/docs/supported-formats',
label: 'Supported media formats',
},
{
type: 'doc',
id: 'c2pa-node/docs/release-notes',
label: 'Release notes',
type: 'category',
label: 'New Node.js library',
link: { type: 'doc', id: 'c2pa-node-v2/readme' },
collapsed: true,
items: [
{
type: 'doc',
id: 'c2pa-node-v2/supported-formats',
label: 'Supported media formats',
},
{
type: 'link',
label: 'API documentation',
href: 'https://github.com/contentauth/c2pa-node-v2/blob/main/docs/README.md',
},
{
type: 'link',
label: 'GitHub',
href: 'https://github.com/contentauth/c2pa-node-v2/tree/main',
},
],
},
{
type: 'doc',
label: 'C2PA Node example',
id: 'c2pa-node-example/readme',
},
{
type: 'link',
label: 'GitHub',
href: 'https://github.com/contentauth/c2pa-node',
type: 'category',
label: 'Legacy Node.js library',
link: { type: 'doc', id: 'c2pa-node/readme' },
collapsed: true,
items: [
{
type: 'link',
label: 'GitHub',
href: 'https://github.com/contentauth/c2pa-node',
},
],
},
],
},
Expand Down