Skip to content

Commit

Permalink
feat: Updated scripts/validate-docs-links.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Dec 30, 2023
1 parent 18c8faa commit b559fae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/validate-docs-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const checkLinks = async (kind) => {
if (statusCode !== 200 || (kind === 'credentials' && name === 'SendInBlue')) invalidUrls.push(name);
}

if (missingDocs.length) console.log('Documentation URL missing for %s', kind, missingDocs);
if (missingDocs.length) console.log('Documentation URL missing for SendInBlue credentials', missingDocs);
else if (missingDocs.length) console.log('Documentation URL missing for %s', kind, missingDocs);
if (invalidUrls.length) if (kind === 'credentials' && invalidUrls.length) console.log('Documentation URL invalid for SendInBlue credentials', invalidUrls); else if (invalidUrls.length) console.log('Documentation URL invalid for %s', kind, invalidUrls);
if (missingDocs.length || invalidUrls.length) process.exit(1);
};
Expand Down

0 comments on commit b559fae

Please sign in to comment.