Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 committed Aug 29, 2024
1 parent 0175008 commit aada9b5
Show file tree
Hide file tree
Showing 4 changed files with 492 additions and 12 deletions.
1 change: 0 additions & 1 deletion .github/workflows/link_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
- name: Install dependencies
run: |
yarn install --frozen-lockfile
npm install linkinator
- name: Get changed files
id: changed-files
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"cheminfo-types": "^1.4.0",
"d3": "^7.9.0",
"esm-hook": "^0.1.4",
"linkinator": "^4.0.5",
"markdown-link-check": "^3.10.3",
"readline": "^1.3.0",
"release-it": "^17.6.0",
Expand All @@ -61,5 +62,8 @@
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"linkinator": "^6.1.1"
}
}
2 changes: 1 addition & 1 deletion scripts/check-links.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function checkLinks() {
for (const file of ipynbFiles) {
console.log(`Checking links in ${file}`);
try {
execSync(`npx linkinator ${file} ${ignorePatterns.map(pattern => `--skip "${pattern}"`).join(' ')}`, { stdio: 'inherit' });
execSync(`yarn linkinator ${file} ${ignorePatterns.map(pattern => `--skip "${pattern}"`).join(' ')}`, { stdio: 'inherit' });
} catch (error) {
console.error(`Error checking links in ${file}:`, error);
process.exit(1);
Expand Down
Loading

0 comments on commit aada9b5

Please sign in to comment.