From 32a3fe3acdb0890aef887bf599f4f8047fe6e455 Mon Sep 17 00:00:00 2001 From: nt54hamnghi Date: Fri, 1 May 2026 18:03:58 -0400 Subject: [PATCH 1/2] Update to use mdbook-linkcheck2 --- README.md | 2 +- book.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9e065814..93d8e97a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The async book is built with [`mdbook`] ([docs](https://rust-lang.github.io/mdBo ``` cargo install mdbook -cargo install mdbook-linkcheck +cargo install mdbook-linkcheck2 ``` [`mdbook`]: https://github.com/rust-lang/mdBook diff --git a/book.toml b/book.toml index 4520ddb1..ff305e3a 100644 --- a/book.toml +++ b/book.toml @@ -9,7 +9,7 @@ create-missing = false git-repository-url = "https://github.com/rust-lang/async-book" site-url = "/async-book/" -[output.linkcheck] +[output.linkcheck2] follow-web-links = true traverse-parent-directories = false exclude = [ 'blog\.cloudflare\.com' ] From 1cbe7d6007e3026884266281d20a854b4b573ade Mon Sep 17 00:00:00 2001 From: nt54hamnghi Date: Tue, 12 May 2026 21:37:06 -0400 Subject: [PATCH 2/2] Update CI to install mdbook-linkcheck2 --- .github/workflows/ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af5f8994..dac6a0f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,13 +11,18 @@ jobs: name: build and test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: Install Rust run: rustup update stable && rustup default stable - name: Install mdbook - uses: taiki-e/install-action@mdbook - - name: Install mdbook-linkcheck - uses: taiki-e/install-action@mdbook-linkcheck + uses: taiki-e/install-action@v2 + with: + tool: mdbook + - name: Install mdbook-linkcheck2 + uses: taiki-e/install-action@v2 + with: + tool: mdbook-linkcheck2 + fallback: cargo-install - run: mdbook build - run: cargo test --all --manifest-path=./examples/Cargo.toml --target-dir ./target - uses: actions/upload-pages-artifact@v3