Skip to content

Commit f4aa4b4

Browse files
rnbguyadizere
andauthored
Add CI job for finding invalid links in markdown files (#1244)
* Added markdown-link-check * Update changelog * Added config file * Added ignore pattern for crates.io, simplified output * Added ignore pattern for localhost * Fix ignore patterns in markdown-link-check config * Better Github relative link for directory * Fix Github relative links within the project * Fixed two broken links * Fixed last broken link * Reverted changelog * Removed pending changelog file Co-authored-by: Adi Seredinschi <[email protected]>
1 parent 5ff02a0 commit f4aa4b4

File tree

9 files changed

+40
-8
lines changed

9 files changed

+40
-8
lines changed

.changelog/epilogue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ with the changes described below.
7373

7474
#### Added inline documentation for all options.
7575

76-
Please have a look around the [config.toml](./config.toml) directly.
76+
Please have a look around the [config.toml](https://github.com/informalsystems/ibc-rs/blob/v0.6.0/config.toml) directly.
7777

7878
#### Added a packet filtering mechanism based on channel/port identifiers
7979

.github/markdown-link-check.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^https://crates.io"
5+
},
6+
{
7+
"pattern": "^https?://localhost"
8+
}
9+
],
10+
"aliveStatusCodes": [429, 200]
11+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Check Markdown links
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
md-link-check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: markdown-link-check
17+
uses: gaurav-nelson/[email protected]
18+
with:
19+
config-file: '.github/markdown-link-check.json'
20+
use-quiet-mode: 'yes'
21+
use-verbose-mode: 'yes'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This project comprises primarily four crates:
2525

2626
See the table below for more details.
2727

28-
Includes [TLA+ specifications](/docs/spec).
28+
Includes [TLA+ specifications](docs/spec).
2929

3030
| Crate name | Type | Version | Docs |
3131
|:-------------:|:------:|:-------------:|:-----:|

docs/architecture/adr-006-hermes-v0.2-usecases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,6 @@ Partially implemented.
290290
[#628]: https://github.com/informalsystems/ibc-rs/issues/628
291291
[#673]: https://github.com/informalsystems/ibc-rs/issues/673
292292
[#640]: https://github.com/informalsystems/ibc-rs/issues/640
293-
[client-state]: https://hermes.informal.systems/query_client.html#query-the-client-state
293+
[client-state]: https://hermes.informal.systems/commands/queries/client.html#query-the-client-state
294294
[client-create]: https://docs.rs/ibc/0.1.1/ibc/ics02_client/msgs/create_client/index.html
295295
[output]: https://github.com/informalsystems/ibc-rs/blob/1f2e72dbcafee5a8bbdab381ff4927d5870b4b59/relayer-cli/src/conclude.rs#L80

docs/spec/tla/fungible-token-transfer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ modules](#helper-modules).
2626

2727
In the model we assume that the [`setup()`](https://github.com/cosmos/ics/tree/5877197dc03e844542cb8628dd52674a37ca6ff9/spec/ics-020-fungible-token-transfer#port--channel-setup) function has been called
2828
before. The [channel handshake
29-
functions]((https://github.com/cosmos/ics/tree/5877197dc03e844542cb8628dd52674a37ca6ff9/spec/ics-020-fungible-token-transfer#channel-lifecycle-management))
29+
functions](https://github.com/cosmos/ics/tree/5877197dc03e844542cb8628dd52674a37ca6ff9/spec/ics-020-fungible-token-transfer#channel-lifecycle-management)
3030
are also considered being already executed. Our
3131
model starts from a state where the channel handshake has completed
3232
successfully.
@@ -55,7 +55,7 @@ This module captures the functions
5555
specifying packet flow and handling from [ICS
5656
04](https://github.com/cosmos/ics/tree/5877197dc03e844542cb8628dd52674a37ca6ff9/spec/ics-004-channel-and-packet-semantics).
5757

58-
#### [Bank.tla](bank.tla)
58+
#### [Bank.tla](Bank.tla)
5959
The bank module encodes functions defined by the Cosmos bank
6060
application.
6161

guide/src/commands/relaying/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ This section describes the types of relaying that hermes can perform.
33

44
Hermes can send transactions triggered by IBC events. It currently handles channel handshake and packet events:
55
- [packets messages only](./packets.md#packet-relaying)
6-
- [channel and packet messages](channel.md#channel-handshake-relaying)
6+
- [channel and packet messages](./handshakes.md)
77

88
## The `start` Command
99

guide/src/commands/relaying/packets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ In addition to these events, the relayer will also handle channel closing events
4646

4747
If the relay path is using a non-zero delay connection, then `hermes` will delay all packet transactions. The delay is relative to the submission time for the client update at the height required by the packet proof.
4848
The delay is used to prevent light client attacks and ensures that misbehavior detection finalizes before the transaction is submitted.
49-
For more information on the misbehavior detector see [the misbehaviour section](../../misbehaviour/index.md#monitoring-misbehaviour-and-evidence-submission).
49+
For more information on the misbehavior detector see [the misbehaviour section](../misbehaviour/index.md#monitoring-misbehaviour-and-evidence-submission).
5050

guide/src/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,4 @@ on [inspecting the relayer state](help.md#inspecting-the-relayer-state).
261261
262262
Now that you learned how to build the relayer and how to create a configuration file, you can go to the [`Two Chains`](./tutorials/local-chains/index.md) tutorial to learn how to perform some local testing connecting the relayer to two local chains.
263263
264-
[log-level]: ./help.html#parametrizing-the-log-output-level
264+
[log-level]: ./help.md#parametrizing-the-log-output-level

0 commit comments

Comments
 (0)