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 Jan 13, 2024
1 parent 4fd2509 commit 03284ad
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 @@ -6,6 +6,7 @@ const glob = require('fast-glob');
const pLimit = require('p-limit');

const nodesBaseDir = path.resolve(__dirname, '../packages/nodes-base');
const sendInBlueCredentials = await import('../Credentials/SendInBlue.credentials');

const validateUrl = async (kind, name, documentationUrl) =>
new Promise((resolve, reject) => {
Expand All @@ -29,7 +30,7 @@ const validateUrl = async (kind, name, documentationUrl) =>
.end();
});

const checkLinks = async (kind) => {
const checkLinks = async (kind, excludeSendInBlue = false) => {
let types = require(path.join(nodesBaseDir, `dist/types/${kind}.json`));
if (kind === 'nodes')
types = types.filter(({ codex }) => !!codex?.resources?.primaryDocumentation);
Expand Down

0 comments on commit 03284ad

Please sign in to comment.