Skip to content

Commit

Permalink
👷 new link checker to ensure local files and anchor ilnks are checked
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Dec 11, 2024
1 parent ef8ba4d commit fb84657
Show file tree
Hide file tree
Showing 10 changed files with 465 additions and 223 deletions.
67 changes: 0 additions & 67 deletions .github/.mlc_config.json

This file was deleted.

29 changes: 29 additions & 0 deletions .github/linter/.mlc_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"ignorePatterns": [
{"pattern": "dco.txt"},
{"pattern": ".*?templates.*?"},
{"pattern": "TBD"}
],
"_aliveComment": "Some sites return 403 from GH Actions check; 400 from twitter (login redirect)",
"aliveStatusCodes": [
0,
200,
206,
400,
403,
429,
500,
503
],
"headers": {
"User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
},
"httpHeaders": [
{
"urls": ["https://www.linkedin.com/company/commonhaus-foundation/"],
"headers": {
"User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
}
}
]
}
58 changes: 53 additions & 5 deletions .github/package-lock.json → .github/linter/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .github/linter/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"type": "module",
"scripts": {
"build": "npx tsc -p tsconfig.json",
"lint": "npm run build && node ./dist/validate.js"
},
"devDependencies": {
"@types/node": "^22.10.2",
"link-check": "^5.4.0",
"markdown-link-check": "^3.13.6",
"markdownlint": "^0.35.0",
"marked": "^15.0.3",
"typescript": "^5.7.2",
"yaml": "^2.3.4"
}
}
19 changes: 19 additions & 0 deletions .github/linter/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "node",
"outDir": "./dist",
"esModuleInterop": true,
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
},
"include": [
"validate.ts"
],
"exclude": [
"node_modules"
]
}
Loading

0 comments on commit fb84657

Please sign in to comment.