Skip to content

Commit e1ef2ca

Browse files
author
hashgraph-online[bot]
committed
fix: ignore all relative links and bot-blocking sites in MLC config
The markdown link checker was failing on 340+ relative links from upstream plugin READMEs (docs/ARCHITECTURE.md, CONTRIBUTING.md, etc.) that don't exist in our repo context. Fix: ignore all non-HTTP links with ^(?!https?://) pattern, plus specific sites that block CI bots (arrow.com, latticesemi.com).
1 parent 4b5b5f3 commit e1ef2ca

2 files changed

Lines changed: 10 additions & 27 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4
22-
- name: Find markdown files to check (exclude plugins/)
23-
id: files
24-
run: |
25-
FILES=$(find . -name "*.md" -not -path "./plugins/*" -not -path "./.git/*" | tr '\n' ' ')
26-
echo "files=$FILES" >> "$GITHUB_OUTPUT"
2722
- uses: gaurav-nelson/github-action-markdown-link-check@v1
2823
with:
2924
config-file: .mlc_config.json
30-
file-path: ${{ steps.files.outputs.files }}
25+
folder-path: ./
3126

3227
build:
3328
runs-on: ubuntu-latest

.mlc_config.json

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
11
{
22
"ignorePatterns": [
3-
{
4-
"pattern": "^https://developers.openai.com"
5-
},
6-
{
7-
"pattern": "^https://awesome.re"
8-
},
9-
{
10-
"pattern": "^https://community.openai.com"
11-
},
12-
{
13-
"pattern": "^https://hol.org"
14-
},
15-
{
16-
"pattern": "^https://cr\\.yp\\.to"
17-
}
18-
],
19-
"aliveStatusCodes": [
20-
200,
21-
301,
22-
302,
23-
403
3+
{ "pattern": "^(?!https?://)" },
4+
{ "pattern": "^https://developers.openai.com" },
5+
{ "pattern": "^https://awesome.re" },
6+
{ "pattern": "^https://community.openai.com" },
7+
{ "pattern": "^https://hol.org" },
8+
{ "pattern": "^https://cr\\.yp\\.to" },
9+
{ "pattern": "^https://www\\.arrow\\.com" },
10+
{ "pattern": "^https://www\\.latticesemi\\.com" }
2411
],
12+
"aliveStatusCodes": [200, 301, 302, 403],
2513
"retryOn429": true,
2614
"retryCount": 5,
2715
"fallbackRetryDelay": 30000

0 commit comments

Comments
 (0)