Skip to content

Commit 4ab9f9d

Browse files
committed
Remove manual redirection in link checker
1 parent 2cb387d commit 4ab9f9d

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ The main workflow builds the site and pushes this to the `gh-pages` branch. Gith
2626

2727
The main workflow also checks for any broken hyperlinks using [markdown-link-check](https://github.com/tcort/markdown-link-check) wrapped in the [related action](https://github.com/marketplace/actions/markdown-link-check).
2828

29-
The config file [link-config-check.json](link-check-config.json) defines a few rewrites we need to do due to the API3 docs site returning 404s instead of 302s when the `/latest/` link redirects to the latest version.
30-
31-
When a new version of Airnode or OIS is released, the version number should be updated in this file.
32-
3329
To run this locally, use this command:
3430

3531
```shell

link-check-config.json

-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11
{
2-
"replacementPatterns": [
3-
{
4-
"pattern": "/airnode/latest/",
5-
"replacement": "/airnode/v0.10/"
6-
},
7-
{
8-
"pattern": "/ois/latest/",
9-
"replacement": "/ois/v1.4/"
10-
},
11-
{
12-
"pattern": "https://docs.api3.org/airnode$",
13-
"replacement": "https://docs.api3.org/airnode/v0.10"
14-
}
15-
],
162
"retryOn429": true,
173
"retryCount": 1
184
}

0 commit comments

Comments
 (0)