Skip to content

Commit d7026aa

Browse files
authored
Checking links in markdown files (#150)
1 parent 991ab68 commit d7026aa

File tree

4 files changed

+44
-2
lines changed

4 files changed

+44
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^(http|https)://crates.io/"
5+
}
6+
]
7+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Check Markdown links
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
jobs:
9+
markdown-link-check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
14+
with:
15+
use-verbose-mode: 'yes'
16+
use-quiet-mode: 'yes'
17+
config-file: '.github/workflows/url-check-config.json'
18+
check-modified-files-only: 'yes'
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Check Markdown links Periodically
2+
3+
on:
4+
schedule:
5+
# Run everyday at 0:00 AM
6+
- cron: "0 0 * * *"
7+
8+
jobs:
9+
markdown-link-check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
14+
with:
15+
use-verbose-mode: 'yes'
16+
use-quiet-mode: 'yes'
17+
config-file: '.github/workflows/url-check-config.json'

refactoring/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
Refactoring is very important in relation to these topics. Just as important as the other topics covered here, is how to take good code and turn it into great code.
44

5-
We can use [design patterns](patterns/index.md) to DRY up code and generalize abstractions. We must avoid [anti-patterns](anti_patterns/index.md) while we do this. While they may be tempting to employ, their costs outweigh their benefits.
5+
We can use [design patterns](../patterns/index.md) to DRY up code and generalize abstractions. We must avoid [anti-patterns](../anti_patterns/index.md) while we do this. While they may be tempting to employ, their costs outweigh their benefits.
66

77
> Shortcuts make for long days.
88
9-
We can also use [idioms](idioms/index.md) to structure our code in a way that is understandable.
9+
We can also use [idioms](../idioms/index.md) to structure our code in a way that is understandable.
1010

1111
## Tests
1212

0 commit comments

Comments
 (0)