Skip to content

Commit

Permalink
make lint-md-links script use markdown-link-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Torres-ssf committed Nov 28, 2024
1 parent 40e4fa1 commit 294ce79
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions scripts/lint-md-links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,15 @@ import { globSync } from 'glob';
const mdFiles = globSync('**/*.md', {
ignore: [
'**/node_modules/**',
'apps/docs/src/api/**', // generated api
'**/CHANGELOG.md',
'apps/demo-nextjs/**',
'apps/demo/**',
'apps/demo-react-cra/**',
'apps/demo-react-vite/**',
'templates/**',
'apps/demo-wallet-sdk-react/**',
'apps/create-fuels-counter-guide/**',
'internal/forc/sway-repo/**',
'internal/fuel-core/fuel-core-repo/**',
'apps/docs-api/**',
'apps/demo-nextjs/**',
'.changeset/**',
'**/CHANGELOG.md',
],
});

execSync(`pnpm textlint ${mdFiles.join(' ')} --debug`, { stdio: 'inherit' });
execSync(`pnpm markdown-link-check -c ./link-check.config.json ${mdFiles.join(' ')}`, {
stdio: 'inherit',
});
})();

0 comments on commit 294ce79

Please sign in to comment.