Skip to content

Commit ab05d24

Browse files
PS-10003 [DOCS] Implement the LinkChecker (#528)
new file: .github/workflows/linkspector.yml new file: docs/.linkspector.yml
1 parent 155a1ef commit ab05d24

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/linkspector.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Linkspector
2+
on:
3+
pull_request:
4+
paths:
5+
- "docs/**"
6+
7+
jobs:
8+
check-links:
9+
name: linkspector
10+
runs-on: ubuntu-22.04
11+
if: ${{ github.actor != 'dependabot[bot]' }}
12+
steps:
13+
- name: Check out code
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
16+
- name: Run linkspector
17+
uses: umbrelladocs/action-linkspector@de84085e0f51452a470558693d7d308fbb2fa261 # v1.2.5
18+
with:
19+
github_token: ${{ secrets.ROBOT_TOKEN || secrets.GITHUB_TOKEN }}
20+
reporter: github-pr-review
21+
fail_level: error
22+
filter_mode: nofilter
23+
config_file: docs/.linkspector.yml

docs/.linkspector.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
dirs:
2+
- docs
3+
4+
ignorePatterns:
5+
- pattern: "^https://www.reddit.com/r/VictoriaMetrics/"
6+
- pattern: "^https://linux.die.net/man/8/logrotate"
7+
- pattern: "#os_alerts$"
8+
- pattern: "#pmm_alerts$"
9+
- pattern: "#mongodb_alerts$"
10+
- pattern: "#pbm_alerts$"
11+
- pattern: "#mysql_alerts$"
12+
- pattern: "#postgresql_alerts$"
13+
- pattern: "#proxysql_alerts$"

0 commit comments

Comments
 (0)