Skip to content

Commit 9bc344b

Browse files
Merge pull request #1454 from maxmind/kevin/lychee
Add link checking github action
2 parents 9093854 + 187b916 commit 9bc344b

31 files changed

+77
-43
lines changed

.github/workflows/links.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Links
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
linkChecker:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write # required for peter-evans/create-issue-from-file
11+
steps:
12+
- uses: actions/checkout@v5
13+
with:
14+
persist-credentials: false
15+
16+
- name: Link Checker
17+
id: lychee
18+
uses: lycheeverse/lychee-action@885c65f3dc543b57c898c8099f4e08c8afd178a2
19+
with:
20+
fail: true
21+
args: --accept '100..=103, 200..=299, 403, 429' './**/*.md' './**/*.html'
22+
23+
- name: Create Issue From File
24+
if: steps.lychee.outputs.exit_code != 0
25+
uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710
26+
with:
27+
title: Link Checker Report
28+
content-filepath: ./lychee/out.md
29+
labels: report, automated issue

.lycheeignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
^file://
2+
^https://sandbox\.maxmind\.com
3+
^https://deno\.land
4+
^https://jsr\.io
5+
^https://minfraud\.maxmind\.com

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Download
7171
[Embedded Dart Sass](https://github.com/sass/dart-sass-embedded/releases) and
7272
make sure it is in your `$PATH`. This is necessary for Hugo to process SASS and
7373
SCSS files. See the
74-
[Hugo documentation](https://gohugo.io/hugo-pipes/scss-sass/) for more
74+
[Hugo documentation](https://gohugo.io/functions/css/sass/#dart-sass) for more
7575
information.
7676

7777
### Development
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
You can
2-
[learn more about the MaxMind Sandbox on our Knowledge Base](https://support.maxmind.com/hc/en-us/sections/8603980533659-Sandbox-Environment).
2+
[learn more about the MaxMind Sandbox on our Knowledge Base](https://support.maxmind.com/knowledge-base/account-and-purchasing#sandbox-environment).

assets/snippets/sandbox-limits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ The Sandbox should not be used to test the capacity of the production web
33
service in high volume situations.
44

55
If you are running into the request limit and need help, please
6-
[reach out to our support team for assistance](https://support.maxmind.com/hc/en-us/requests/new).
6+
[reach out to our support team for assistance](https://support.maxmind.com).

content/contribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ minor modifications.
4747

4848
If you would like us to feature an API or tool that you’ve developed for use
4949
with our products and services, please
50-
[contact our support team](https://support.maxmind.com/hc/en-us/requests/new)
50+
[contact our support team](https://support.maxmind.com)
5151
with a brief description of the tool and a link to the code and documentation.
5252
We do not guarantee that we will feature all contributions on our site, but
5353
we’re always interested to see what you come up with.
@@ -59,5 +59,5 @@ may be interested in referring your users to MaxMind through our Affiliate
5959
Program.
6060

6161
You can
62-
[learn more about the MaxMind Affiliate Program for developers on our Knowledge Base](https://support.maxmind.com/hc/en-us/sections/5066199198619-Affiliate-Program),
62+
[learn more about the MaxMind Affiliate Program for developers on our Knowledge Base](https://support.maxmind.com/knowledge-base/account-and-purchasing#affiliate-program),
6363
including how to apply.

content/geoip/docs/web-services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ help us investigate an issue:
166166
- Date and time frame (including time zone) that you experienced the issue
167167
- Your traceroute to `geoip.maxmind.com`
168168

169-
[You can submit your support request on our knowledge base.](https://support.maxmind.com/hc/en-us/requests/new)
169+
[You can submit your support request on our knowledge base.](https://support.maxmind.com)
170170

171171
## Command Line (curl) Examples
172172

content/geoip/docs/web-services/legacy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ encoding is also referred to as latin1.
486486
<li>
487487
<strong>PERMISSION_REQUIRED</strong> – This is returned if you do
488488
not have permission to use the service. Please
489-
<a href="https://support.maxmind.com/hc/en-us/requests/new"
489+
<a href="https://support.maxmind.com"
490490
>contact our support team</a
491491
>
492492
for more information.

content/geoip/docs/web-services/responses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ to handle any valid HTTP `4xx` or `5xx` status code.
136136
<td>402 Payment Required</td>
137137
<td>
138138
You do not have permission to use the service. Please
139-
<a href="https://support.maxmind.com/hc/en-us/requests/new"
139+
<a href="https://support.maxmind.com"
140140
>contact our support team</a
141141
>
142142
for more information.

content/geoip/geolocate-an-ip/client-side-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ description of the error.
200200
| `DOMAIN_REGISTRATION_REQUIRED` | 401 Unauthorized | The domain of your site is not registered. |
201201
| `QUERY_FORBIDDEN` | 401 Unauthorized | You tried to access a service or feature that is not covered by your service plan. |
202202
| `OUT_OF_QUERIES` | 402 Payment Required | The license key you have provided is out of queries. Please purchase more queries to use this service. |
203-
| `PERMISSION_REQUIRED` | 403 Forbidden | You do not have permission to use the service. Please [contact our support team](https://support.maxmind.com/hc/en-us/requests/new) for more information. |
203+
| `PERMISSION_REQUIRED` | 403 Forbidden | You do not have permission to use the service. Please [contact our support team](https://support.maxmind.com) for more information. |
204204
| `HTTP_TIMEOUT` | (none) | The request to the GeoIP web service timed out. |
205205
| `HTTP_ERROR` | (none) | There was an error making the request to the GeoIP web service. |
206206

0 commit comments

Comments
 (0)