Skip to content

Commit d30a332

Browse files
committed
Fix Edit page link for JS SDK docs that are in this repo, and hide link for generated JS API docs
1 parent 3220df6 commit d30a332

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docusaurus.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const externalRepos = {
3535
org: 'contentauth',
3636
},
3737
c2patool: { repo: 'c2pa-rs', path: 'cli/', org: 'contentauth' },
38-
'js-sdk': { repo: 'c2pa-js', path: '', org: 'contentauth' },
3938
'rust-sdk': { repo: 'c2pa-rs', path: '', org: 'contentauth' },
4039
trustmark: { repo: 'trustmark', path: '', org: 'adobe' },
4140
};
@@ -77,6 +76,11 @@ const config = {
7776
docs: {
7877
sidebarPath: require.resolve('./sidebars.js'),
7978
editUrl: ({ docPath }) => {
79+
// Don't show edit link for dynamically generated API docs
80+
if (docPath.startsWith('js-sdk/api/')) {
81+
return null;
82+
}
83+
8084
// Special case for supported-formats.md files
8185
if (docPath.endsWith('supported-formats.md')) {
8286
return 'https://github.com/contentauth/c2pa-rs/edit/main/docs/supported-formats.md';

0 commit comments

Comments
 (0)