Skip to content

Commit 1643b0a

Browse files
committed
Fix: Markdown links checker
1 parent 75750ca commit 1643b0a

File tree

4 files changed

+43
-9
lines changed

4 files changed

+43
-9
lines changed

.github/mlc_config.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^\\.git/"
5+
},
6+
{
7+
"pattern": "^http://localhost"
8+
},
9+
{
10+
"pattern": "^https://translatewiki\\.net"
11+
}
12+
],
13+
"httpHeaders": [
14+
{
15+
"urls": ["^https?://"],
16+
"headers": {
17+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36"
18+
}
19+
}
20+
],
21+
"timeout": "40s",
22+
"retryOn429": true,
23+
"aliveStatusCodes": [0, 200, 206, 403, 429],
24+
"retryCount": 5,
25+
"fallbackRetryDelay": "30s"
26+
}

.github/workflows/checklink.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
name: Check Markdown links
22

3-
on: workflow_dispatch
4-
# on: [pull_request]
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
schedule:
7+
- cron: '0 0 1 * *' # Monthly
8+
workflow_dispatch:
59

610
jobs:
711
markdown-link-check:
12+
name: Check for broken links
813
runs-on: ubuntu-latest
914
steps:
10-
- uses: actions/checkout@master
11-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
12-
with:
13-
use-quiet-mode: 'yes'
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Run link checker
19+
uses: gaurav-nelson/github-action-markdown-link-check@v1
20+
with:
21+
config-file: '.github/mlc_config.json'
1422
use-verbose-mode: 'yes'

DISCOVER/01_about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ It focuses specifically on plans, decisions, and actions organizers can take to
1313
_Funding to produce this cookbook was made possible by a generous grant from the_ **Moore Foundation** _._
1414

1515
**Further Reading:**
16-
- [DISCOVER Cookbook Checklist](/13_inclusive-checklist.md) — A practical checklist for conference organizers to implement inclusive measures effectively.
16+
- [DISCOVER Cookbook Checklist](13_inclusive-checklist.md) — A practical checklist for conference organizers to implement inclusive measures effectively.
1717

1818
## What this Cookbook Is Not
1919

DISCOVER/intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The NumFOCUS DISCOVER Cookbook (Diverse & Inclusive Spaces and Conferences: Over
99

1010
This cookbook is intended as a resource for **organizers of conferences and events** to **support and encourage diversity and inclusion** at those events. This cookbook is **not** intended to provide **general instructions** on how to run a successful conference or event.
1111

12-
Read more about this cookbook [here](/01_about.md).
12+
Read more about this cookbook [here](01_about.md).
1313

1414
For a full statement of the NumFOCUS DISC Program mission and the NumFOCUS position on diversity and inclusion, please see [NumFOCUS Diversity and Inclusion Program](https://www.numfocus.org/programs/diversity-and-inclusion/).
1515

@@ -31,6 +31,6 @@ We also encourage you to do **at least one thing** in the "High Impact, Hig
3131
| **High Impact** | 🍎 Quick Wins | ✅ Do These |
3232
| **Low Impact** | 🗓️ Schedule (Chores) | 🛑 Stop Doing |
3333

34-
The "high impact, low effort" and "high impact, high effort" suggestions are summarized on the [Summary page](/02_minimal_measures.md).
34+
The "high impact, low effort" and "high impact, high effort" suggestions are summarized on the [Summary page](02_minimal_measures.md).
3535

3636
Please see the [NumFOCUS Privacy Policy](https://numfocus.org/privacy-policy) for more information about how we collect data.

0 commit comments

Comments
 (0)