mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-31 06:37:39 +02:00
Use mdbook-linkcheck2.
mdbook-linkcheck hasn't had a release in 2 years and doesn't support Rust 2024 edition.
This commit is contained in:
parent
7632c9990f
commit
5dcf142a45
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -161,9 +161,9 @@ jobs:
|
|||||||
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' mdbook build -d po
|
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' mdbook build -d po
|
||||||
msgfmt -o /dev/null --statistics po/messages.pot
|
msgfmt -o /dev/null --statistics po/messages.pot
|
||||||
|
|
||||||
- name: Install mdbook-linkcheck
|
- name: Install mdbook-linkcheck2
|
||||||
if: contains(fromJSON(env.LINK_CHECKED_LANGUAGES), matrix.language)
|
if: contains(fromJSON(env.LINK_CHECKED_LANGUAGES), matrix.language)
|
||||||
run: cargo install mdbook-linkcheck --locked --version 0.7.7
|
run: cargo install mdbook-linkcheck2 --locked --version 0.9.1
|
||||||
|
|
||||||
- name: Build ${{ matrix.language }} translation
|
- name: Build ${{ matrix.language }} translation
|
||||||
run: |
|
run: |
|
||||||
|
@ -57,7 +57,7 @@ The course is built using a few tools:
|
|||||||
- [mdbook-course](mdbook-course/)
|
- [mdbook-course](mdbook-course/)
|
||||||
|
|
||||||
In addition,
|
In addition,
|
||||||
[mdbook-linkcheck](https://github.com/Michael-F-Bryan/mdbook-linkcheck) checks
|
[mdbook-linkcheck2](https://github.com/marxin/mdbook-linkcheck2) checks
|
||||||
the internal links.
|
the internal links.
|
||||||
|
|
||||||
First install Rust by following the instructions on https://rustup.rs/. Then
|
First install Rust by following the instructions on https://rustup.rs/. Then
|
||||||
|
@ -291,7 +291,7 @@ use-boolean-and = true
|
|||||||
[output.exerciser]
|
[output.exerciser]
|
||||||
output-directory = "comprehensive-rust-exercises"
|
output-directory = "comprehensive-rust-exercises"
|
||||||
|
|
||||||
[output.linkcheck]
|
[output.linkcheck2]
|
||||||
optional = true
|
optional = true
|
||||||
follow-web-links = false # change to true to check web links
|
follow-web-links = false # change to true to check web links
|
||||||
exclude = [
|
exclude = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user