Skip to content

Commit 8a21e7d

Browse files
committed
Add mobile example apps to sidebar nav
1 parent 3a7e797 commit 8a21e7d

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
/docs/rust-sdk/*.md
2929
/docs/rust-sdk/docs/*.md
3030
/docs/**/readme.md
31+
/docs/**/README.md
3132
/static/sb-alg-list.json
3233
/docs/trustmark/*.md
3334
/docs/trustmark/c2pa/*.md

docs/c2pa-android-example/.gitkeep

Whitespace-only changes.

docs/c2pa-ios-example/.gitkeep

Whitespace-only changes.

scripts/fetch-readme.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,16 @@ const readmes = [
265265
repo: 'contentauth/c2pa-android',
266266
path: 'README.md',
267267
},
268+
{
269+
dest: resolve(__dirname, '../docs/c2pa-ios-example/README.md'),
270+
repo: 'contentauth/c2pa-ios-example',
271+
path: 'README.md',
272+
},
273+
{
274+
dest: resolve(__dirname, '../docs/c2pa-android-example/README.md'),
275+
repo: 'contentauth/c2pa-android-example',
276+
path: 'README.md',
277+
},
268278
];
269279

270280
function resolveMarkdownLinks(linkBase, content) {

sidebars.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,11 @@ const sidebars = {
356356
link: { type: 'doc', id: 'c2pa-ios/README' },
357357
collapsed: true,
358358
items: [
359+
{
360+
type: 'doc',
361+
id: 'c2pa-ios-example/README',
362+
label: 'Example iOS app',
363+
},
359364
{
360365
type: 'link',
361366
label: 'API documentation',
@@ -374,6 +379,11 @@ const sidebars = {
374379
link: { type: 'doc', id: 'c2pa-android/README' },
375380
collapsed: true,
376381
items: [
382+
{
383+
type: 'doc',
384+
id: 'c2pa-android-example/README',
385+
label: 'Example Android app',
386+
},
377387
{
378388
type: 'link',
379389
label: 'API documentation',

0 commit comments

Comments
 (0)