Skip to content

Commit a7024aa

Browse files
committed
Use mdbook-linkcheck2.
mdbook-linkcheck hasn't had a release in 2 years and doesn't support Rust 2024 edition.
1 parent 75a2f41 commit a7024aa

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ jobs:
161161
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' mdbook build -d po
162162
msgfmt -o /dev/null --statistics po/messages.pot
163163
164-
- name: Install mdbook-linkcheck
164+
- name: Install mdbook-linkcheck2
165165
if: contains(fromJSON(env.LINK_CHECKED_LANGUAGES), matrix.language)
166-
run: cargo install mdbook-linkcheck --locked --version 0.7.7
166+
run: cargo install mdbook-linkcheck2 --locked --version 0.9.1
167167

168168
- name: Build ${{ matrix.language }} translation
169169
run: |

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The course is built using a few tools:
5555
- [mdbook-i18n-helpers and i18n-report](https://github.com/google/mdbook-i18n-helpers)
5656
- [mdbook-exerciser](mdbook-exerciser/)
5757
- [mdbook-course](mdbook-course/)
58-
- [mdbook-linkcheck](https://github.com/Michael-F-Bryan/mdbook-linkcheck)
58+
- [mdbook-linkcheck2](https://github.com/marxin/mdbook-linkcheck2)
5959

6060
First install Rust by following the instructions on https://rustup.rs/. Then
6161
clone this repository:
@@ -75,13 +75,13 @@ cargo xtask install-tools
7575

7676
Here is a summary of the various commands you can run in the project.
7777

78-
| Command | Description |
79-
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
80-
| `cargo xtask install-tools` | Install all the tools the project depends on. |
81-
| `cargo xtask serve` | Start a web server with the course. You'll find the content on http://localhost:3000. |
82-
| `cargo xtask rust-tests` | Test the included Rust snippets. |
83-
| `cargo xtask web-tests` | Run the web driver tests in the tests directory. |
84-
| `cargo xtask build` | Create a static version of the course in the `book/` directory. Note that you have to separately build and zip exercises and add them to book/html. To build any of the translated versions of the course, run MDBOOK_BOOK__LANGUAGE=xx mdbook build -d book/xx where xx is the ISO 639 language code (e.g. da for the Danish translation). [TRANSLATIONS.md](TRANSLATIONS.md) contains further instructions. |
78+
| Command | Description |
79+
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
80+
| `cargo xtask install-tools` | Install all the tools the project depends on. |
81+
| `cargo xtask serve` | Start a web server with the course. You'll find the content on http://localhost:3000. |
82+
| `cargo xtask rust-tests` | Test the included Rust snippets. |
83+
| `cargo xtask web-tests` | Run the web driver tests in the tests directory. |
84+
| `cargo xtask build` | Create a static version of the course in the `book/` directory. Note that you have to separately build and zip exercises and add them to book/html. To build any of the translated versions of the course, run MDBOOK_BOOK\_\_LANGUAGE=xx mdbook build -d book/xx where xx is the ISO 639 language code (e.g. da for the Danish translation). [TRANSLATIONS.md](TRANSLATIONS.md) contains further instructions. |
8585

8686
> **Note** On Windows, you need to enable symlinks
8787
> (`git config --global core.symlinks true`) and Developer Mode.

book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ use-boolean-and = true
291291
[output.exerciser]
292292
output-directory = "comprehensive-rust-exercises"
293293

294-
[output.linkcheck]
294+
[output.linkcheck2]
295295
optional = true
296296
follow-web-links = false # change to true to check web links
297297
exclude = [

0 commit comments

Comments
 (0)