Skip to content

Commit f9963c2

Browse files
doc: validate urls
1 parent b343454 commit f9963c2

File tree

3 files changed

+39
-16
lines changed

3 files changed

+39
-16
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: CI
2-
on: [push, pull_request]
2+
on: [ push, pull_request ]
33

44
env:
55
RUSTFLAGS: -Dwarnings
@@ -19,25 +19,30 @@ jobs:
1919
- nightly
2020
timeout-minutes: 45
2121
steps:
22-
- uses: actions/checkout@v4
23-
- uses: dtolnay/rust-toolchain@stable
22+
-
23+
uses: actions/checkout@v4
24+
-
25+
uses: dtolnay/rust-toolchain@stable
2426
with:
2527
toolchain: ${{ matrix.rust }}
2628
components: clippy, rustfmt
27-
- run: cargo install cargo-hack --locked
28-
- uses: taiki-e/install-action@nextest
29-
- uses: actions/setup-node@v4
29+
-
30+
run: cargo install cargo-hack --locked
31+
-
32+
uses: taiki-e/install-action@nextest
33+
-
34+
uses: actions/setup-node@v4
3035
with:
3136
node-version: lts/Iron # 20
32-
- uses: denoland/setup-deno@v1
37+
-
38+
uses: denoland/setup-deno@v1
3339
with:
3440
deno-version: v1.45.x
35-
- uses: Swatinem/[email protected]
36-
- run: npm install --global [email protected] [email protected]
37-
- name: Install yj
38-
run: |
39-
curl -L https://github.com/sclevine/yj/releases/download/v5.1.0/yj-linux-amd64 -o yj
40-
chmod +x yj
41-
sudo mv yj /usr/local/bin/
42-
- run: lefthook run --force pre-commit
43-
- run: cargo hack test --feature-powerset
41+
-
42+
uses: Swatinem/[email protected]
43+
-
44+
run: ./install.sh
45+
-
46+
run: lefthook run --force pre-commit
47+
-
48+
run: cargo hack test --feature-powerset

.remarkrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"plugins": [
3+
["remark-validate-links", {}],
4+
["remark-lint-no-dead-urls", {}]
5+
]
6+
}

install.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
npm install --global \
4+
5+
6+
7+
8+
9+
# Install yj
10+
curl -L https://github.com/sclevine/yj/releases/download/v5.1.0/yj-linux-amd64 -o /tmp/yj
11+
chmod +x /tmp/yj
12+
sudo mv /tmp/yj /usr/local/bin/yj

0 commit comments

Comments
 (0)